1. Subroutine jumps RET

ในหน้านี้3 หัวข้อ

1.1. Instruction Description#

When the input condition is turned on, the instruction after this instruction in the current subroutine is abandoned and jumps directly to the position where the subroutine is called, continuing to execute the instructions after the parent program.

1.2. The valid operands of the instruction#

Input/Output Data Type operand Description

1.3. Example#

command table:

NETWORK 000

LD X001

RET // If the top value of the stack is 1, jump out from here and continue executing the previous level program.

NETWORK 001

LD X002

SUB D0 D1 D2 // If there is no jump above, the program here will continue to execute.

RET

图1 RET

อุปกรณ์ที่ใช้กับคู่มือนี้
2 รายการ
FAT-16MT-DC-E
FAT-16MT-DC-E

PLC 16 I/O 24V DC Transistor Output รองรับ Modbus RTU/RS485 TCP/IP

฿2,590

FAs-32MR-AC-E
FAs-32MR-AC-E

PLC 32 I/O 220V AC Relay Output รองรับ Modbus RTU/RS485 TCP/IP

฿3,690