Call Structured Text Program
Instruction Parameters
Supported PLC Series
CM1
| XP Series | UP Series | CP Series |
|---|---|---|
| - | ✓ | - |
CM3
| Plus | Mini Modular | Micro-S | Pro |
|---|---|---|---|
| ✓ | - | - | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| D | ✓ | - | ✓ | ✓ | ✓ | - | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | - |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | - |
| Zero | F11.1 | - |
| Carry | F11.2 | - |
Number of Steps
| Steps |
|---|
| 3 |
Operands
| Operand | Description |
|---|---|
| S1 | The first operand. Entries are WORD data registers or constants. This is the Structured Text program ID. The value range is 0 ~ 127. |
| D | The second operand. Entries are only WORD data registers. This is the result of the instruction execution. The result is in Hexadecimal form. |
Result Format
| Value | Description |
|---|---|
| 0x01 | Result value during normal operation. |
| 0xF0 | Result value when a non-manually executed Structured Text program is set. |
| 0xF1 | Result value when a manually executed program set to disable is set through the STRUN instruction. |
| 0xF2 | Result value when a non-Structured Text program is used for the first operand. |
Instruction Behavior
The STCALL instruction behaves as follows:
- It is required that the STCALL instruction be used with a pulse contact as an execution condition.
- A single execution is sent to manually run Structured Text programs.
- Manual execution programs execute once they receive the command, and then they return to a waiting state.
- The manual program executes once immediately after the execution of the STCALL instruction.
- The timing of a manually executed Structure Text program may be different from the timing of an automatically executed Structured Text program.
Program Execution Behavior
Program execution behaves as follows:
- Input (Refresh)
- Scan Program Execution
- Structured Text Program Execution
- Self-Diagnosis
- Output (Refresh)
- Structured Text Manual Execution
- Repeat