Synchronised wait (#COMMAND WAIT SYN)
Syntax : |
#COMMAND WAIT SYN [AX=<axis_name> | AXNR=.. ID=<Ident_nr> <Drive_type> ] |
AX=<axis_name> | Name of SERCOS axis ALL: Check all SERCOS axes existing in the system |
AXNR=.. | Logical axis number of the SERCOS axis, positive integer |
ID=<Ident_nr> | Identification number of the command in SERCOS format, e.g. S-0-0148 (drive-controlled referencing) or S-0-0170 (tracing cycle) If no identification number is specified, the system waits for all open commands. |
<Drive_type> | Drive type SERC: SERCOS drive (currently only one permitted) |
Programming Example
Synchronised wait (COMMAND)
Notice | |
No plausibility check is made for logical axis number or identification number. The operator is solely responsible for making the correct entries. |
![]() | The motion is not forcibly stopped to wait for a SERCOS command. But if a SERCOS command is not terminated at the end of the motion block, no further NC block is processed and the motion is therefore stopped. |
Programming Example
The system waits until the S‑0‑0148 command terminates at the end of block N120.
Notice | |
A ("WAIT”) command can only check commands which were previously started from the same processing level (decoding context or synchronous to processing at interpolation level). For example, a synchronised command ("SYN”) can only be checked synchronously at interpolator level. |
Programming Example
No active command S‑0‑0148 is found in the N100 block, so no wait is initiated although the command could still actually be active. The real state of the command at interpolation level is only detected at block N120.