; ---------------G代码示例-------------------------
; This example Motion Program (Prog #1) demonstrates:
;
; A) Using G-Codes (G0, G1) to command motion
; B) Using M-codes to control PMAC digital I/O
; C) Download ‘associated‘ files using ‘#include‘
;
; To run this Motion Program, from the PEWIN terminal window enter:
; B1R <enter>
;
; This G-Code program will traverse a ‘square‘ in X & Y axes
; A solenoid activated pen is controlled by M-codes M03 & M05
;
==是同步赋值,与运动有关;=是异步赋值。
下面是详细解释。
This command allows the value of an M-variable to be set synchronously with the start of the next move
or dwell. This is useful especially with M-variables assigned to outputs, so the output changes
synchronously with beginning or end of the move. Non-synchronous calculations (with the single =) are
fully executed ahead of time, during previous moves.