SYS_CURRENT_PLC

Group

PLC type constants

Name

This system constant is a unique value for the PLC type currently selected. It allows programs to be compiled only for the PLC type currently selected.

Example
#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;
Related topics:

Modified on: 2019-01-26Feedback on this pagePanasonic hotline