SYS_CURRENT_PLC

Gruppo

Costanti tipo di PLC

Nome

Questa costante di sistema è un valore univoco per il tipo di PLC correntemente selezionato. Consente di compilare i programmi solo per il tipo di PLC correntemente selezionato.

Esempio
#if((SYS_CURRENT_PLC AND (SYS_FP0 OR SYS_FP_e))<>0) #then
(* only code for FP0 or FPe is executed*)
#elsif ((SYS_CURRENT_PLC AND (SYS_FP2 OR SYS_FP2SH OR SYS_FP10SH))<>0) #then
(* only code for FP2,FP2SH or FP10SH is executed*)
#end_if;
Argomenti correlati

L'ultima revisione: 05.05.2021Feedback su questa paginaPanasonic hotline