Requesting the last valid status in #WAIT MC_Status
After one or more previous #WAIT MC_Status commands, the last valid return value of #WAIT MC_Status can be read out by the MCV_WAIT_STATUS function and used to continue program execution.
The numerical values stored in the constants apply as return values.
The following constants for status are available in the CNC code:
- MC_NEW
- MC_BUSY
- MC_ACTIVE
- MC_DONE
- MC_ERROR
- MC_ABORTED
They are used to compare a stored variable after a #MCV_WAIT_STATUS.
![]() | Available as of V3.1.3110. |
Syntax: |
#MCV_WAIT_STATUS [JobID=..] |
JobID=.. | User-specific JobID/job identification number. The number must be unique in the commanding program. |
![]() | To call this function, it requires one or more #WAIT MC_Status commands with the same JobID=... for the number stored in <JobID>. If this is not the case, an error is output. |
Programming Example
Waiting for a job signal
PV2=MC_DONE PM1=3 PM2=633]
