IsInstructionSupported

Evaluates if an instruction is supported

Use this instruction for conditional compilation within the ST editor. Depending on the PLC type connected, the instruction returns TRUE if the system instruction specified by the instruction's name is supported; otherwise it returns FALSE.

Example

#IF IsInstructionSupported('F145_WRITE_DATA') <> 0 #THEN
    (*condition TRUE if channel 0 is enabled: first part is compiled and executed*)
#ELSE
    (*condition FALSE: second part is compiled and executed*)
#END_IF;
Related topics:

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