plc:motion_commands_from_plc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plc:motion_commands_from_plc [2021/11/02 15:38] – ivan | plc:motion_commands_from_plc [2024/02/21 13:58] (current) – ivan | ||
---|---|---|---|
Line 58: | Line 58: | ||
Example <code c> | Example <code c> | ||
g0moveA(0, | g0moveA(0, | ||
- | timer=10; do{timer--; | + | timer=200; do{timer--; |
+ | //wait 10ms , motion should start, motion state will turn to **0** | ||
do{ code=gvarget(6060); | do{ code=gvarget(6060); | ||
</ | </ | ||
Line 83: | Line 84: | ||
gvarset(7080, | gvarset(7080, | ||
g0moveA(absolute, | g0moveA(absolute, | ||
- | timer=10; do{timer--; | + | timer=200; do{timer--; |
do { code=gvarget(6060); | do { code=gvarget(6060); | ||
}; | }; | ||
Line 110: | Line 111: | ||
}; | }; | ||
</ | </ | ||
+ | |||
+ | :!: **NOTE:** Note the '' | ||
First block of this procedure check if spindle currently is O, and **lift_up** variable is positive value and the lift tool up for given value set in plc-variables.xml configuration file. For those who don't need this lifting can remove the lines and rebuild PLC (see rebuild buttons in [[plc: | First block of this procedure check if spindle currently is O, and **lift_up** variable is positive value and the lift tool up for given value set in plc-variables.xml configuration file. For those who don't need this lifting can remove the lines and rebuild PLC (see rebuild buttons in [[plc: |
plc/motion_commands_from_plc.txt · Last modified: 2024/02/21 13:58 by ivan