Junolane MotionPLC中文

Conditional Wait

WAIT_FOR_SIGNAL · V4.23

Choose Variables & Flow > Conditional Wait. Its two operands and dropdowns match Conditional Jump, with no target Mark or row. Select a user error code from 128 to 255 already defined in the data dictionary, including when timeout is zero. System codes cannot be selected; distinct machine faults use their own descriptions instead of a generic wait-timeout code.

Hexadecimal notation is used for IDs, indexes, modes and sentinel values where applicable. Physical quantities (such as pulses, milliseconds and pulse/s) remain in their native units. Macro names are shown only when defined by the firmware.

Input parameters

ParameterInitial valueMeaning
Value 1 / sensorinput_indexX0First operand: input, variable, output or current-task timer value/state, as offered by the dropdown.
Value 2compare_sourceXSTATE_CLOSESecond operand or manual numeric value. A manual value is unsigned 32-bit.
Comparisoncondition==, <>, <, >, <= or >=. The row advances only when the comparison is true.
Timeouttimeout_ms00 to 2147483647 ms. Zero waits indefinitely without a timeout alarm.
Timeout outputtimeout_output0x04U (Y4)No Output, or Y4-Y31 on 32Y / Y4-Y23 on 24Y. No Output still records the timeout and pauses tasks; it does not change a Y output. MTGM_SIGNAL_WAIT_NO_OUTPUT = 0xFFU.
Timeout user error codetimeout_error_codeRequired / select valueDefined user code 128-255 only; mandatory even with timeout 0.

Initial values are editor defaults for a newly inserted instruction; configure them for the actual machine.

Firmware macro definitions

Hexadecimal equivalents of the firmware definitions; numeric values are unchanged.

#define MTGM_SIGNAL_WAIT_NO_OUTPUT 0xFFU

Execution and usage

← Back to instruction treeFull user manual (PDF)