IsIndexRegisterSize32Bit

Evaluates if the index register size is 32-bit

Use this instruction for conditional compilation within the ST editor. Depending on the PLC type connected, the instruction returns TRUE if the index register size is 32-bit; otherwise it returns FALSE.

Example

#IF IsSystemVariableSupported('sys_iScanTimeCurrent') <>0 #THEN
    (*condition TRUE: 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