PLC data conversion instructions BCD BIN

(1) BCD BCD conversion instructions (d) BCD (p) instruction ALCE number is FNC18. It is the source component of the binary number is converted into BCD codes to send to the target element, as shown in Figure 3-41.If the instructions for 16-bit operation, Executive outcomes beyond the scope of 0~9999 an error occurs when instructions … Continue reading PLC data conversion instructions BCD BIN

PLC program instructions FEDND

Instruction FEND number main program ends FNC06, no operation, taking up 1 program step. FEND main program ends, as when performing to FEND, PLC input/output processing, watchdog timer, refresh, complete and return the start step.FEND instruction should be used note:1) subroutines and interrupts service routines should be placed after the FEND;2) subroutines and interrupts service … Continue reading PLC program instructions FEDND

PLC instructions associated with the interrupt

Three command is associated with the interrupt: interrupt return instructions IRET, numbered FNCO3; EI interrupt enable directive, the number is FNCO4; break prohibition of DI, the number is FNC05. They have no operands, occupies 1 program step.PLC is usually in the interrupt disable State, composed of EI and DI instructions allow ranges to be interrupted. … Continue reading PLC instructions associated with the interrupt

PLC subroutine call and return instructions

CALL subroutine call instruction's number is FNC01. P0~P127 the operands, this instruction takes 3-program step.SRET subroutine return directive number FNC02. No operands, occupies 1 program step.As shown in Figure 1, if X0 connected, go to the label P10 to execute subroutines. When a SRET instruction is executed, it returns to the next step of the … Continue reading PLC subroutine call and return instructions