Download User Manual PROGRAMMABLE REMOTE INPUT/OUTPUT

Transcript
SiAM CRIO v3.0
User Manual
9.3.- The IEC code is not executing correctly
If the instruction are not executed in an unexpected way, it’s probably because the logic
accumulator RLO has the value FALSE. This disables execution of some instructions (for
example, all the conditional instructions which end in ‘C’ like JMPC, CALC, RETC…). To
avoid this, after finishing a logical segment of the program (typically with a store
instruction like ST or STN), place an instruction to start the new logical segment with the
RLO value to TRUE. This can be done with LD TRUE, or better with an S instruction (SET
without operand) which consumes less program memory.
Page 69