44
2 PRECAUTIONS ON PROGRAMMING
2.4 Standard Function/Function Block Return Values
• If the on-to-off changes of X0 and X1 are at the same timing
If output (Y) is specified using a PLF instruction, the on/off state of the last PLF instruction executed during the one scan will
be output.
2.4
Standard Function/Function Block Return Values
When standard functions/function blocks are used, always set a device or label for the output variable, and make sure to
receive the return value.
If the output variable is not set, an error may occur after writing to the PLC.
(1) Since X0 turns off, M0 turns on.
(2) Since X1 turns off, M0 remains on.
(3) Since X0 is other than turning off, M0 turns off.
(4) Since X1 is other than turning off, M0 remains off.
ON
ON
ON
X1
X0
PLF M0
PLF M0
PLF M0
X1
X0
PLF
OFF
OFF
OFF
M0
X1
X0
END
END
END
ON
(1)
(2)
(3)
(4)
OFF
M0
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......