Control via RS232 / RS485 / USB
C3I12T11
192-120113 N08 C3I12T11 - December 2010
5.3 Examples include: Control via COM port
Control via COM port is executed via the control word (object 1100.3) and the
status word (object 1000.3).
These examples are based on the ASCII record, they may, however, also be
realized on the binary record. The binary record offers the advantage, that the
transmission is ensured by the CRC verification.
The commands can also be entered via a HyperTerminal
(terminal setting is 115200.8.N.1 with hardware flow control.
Recommendation for Compax3S/H/F: Local echo and connection of CR/LF
Recommendation for Compax3M: Local echo and connection of CR (otherwise
danger of data collisions on the USB bus)
Activation of the axis:
o1100.3=1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Manual motion (manual+)
break /Stop Start Addr4 Addr3 Addr2 Addr1 Addr0 O3 O2 O1 O0 Jog- Jog+ /Stop Quit /
o1100.3=$4007 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1
Approach machine zero
motor
o1100.3=$4003 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1
First of all was ensured, that Start is at 0, as a rising edge is required for triggering
a motion.
Start - edge
break /Stop Start Addr4 Addr3 Addr2 Addr1 Addr0 O3 O2 O1 O0 Jog- Jog+ /Stop Quit /
motor
o1100.3=$6003 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1
Then the set is started with address 0 (=always reference run).
Acknowledge Error
At first the errors can be read:
o550.1 read last error
o550.2 read last but one error
...
In the error history the executed error acknowledgements are also listed (value=1).
This helps you to read out the errors that occurred since the last
acknowledgement.
If the cause of an error is eliminated, the error can be acknowledged. To do this,
you will need a rising edge on Bit 0.
Set ackn to "0"
motor
o1100.3=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Ackn - edge
motor
o1100.3=$4003 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1