ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05 Chapter C: System functions
Operation & Software Manual
Direct Drives & Systems 201
;Mapping #1 (definition triggers E
4,
E
5,
E
6
)
E4:0.1=0x00010082 ;Negative trigger (0x82) and action 1 (0x01), controller's DOUTs & SD2
E4:1.1=0 ;Controller's outputs = 0000 bin. All the DOUTs = 0 (masked by TMK)
E4:2.1=0 ;’Status Drive’ SD2 bits = 00 bin. Bit# 9=0, Bit# 8=0 (masked by parameter K184)
E4:3.1=15000 ;Trigger position = 15000 [upi]
E5:0.1=0x00010083 ;Bidirectional trigger (0x83) and action 1 (0x01), controller's DOUTs & SD2
E5:1.1=4 ;Controller's outputs = 0100 bin. DOUT3=1 of DSC2P (masked by TMK), other
outputs = 0.
E5:2.1=2 ;’Status Drive’ SD2 bits = 10 bin. Bit# 9=1, Bit# 8=0 (masked by parameter K184)
E5:3.1=25000 ;Trigger position = 25000 [upi]
E6:0.1=0x00020082 ;Negative trigger (0x82) and action 2 (0x02), DSO-HIO XDOUTs & SD2
E6:1.1=1 ;Controller's outputs = 0001 bin. XDOUT1=1 of DSO-HIO (masked by K183)
E6:2.1=3 ;’Status Drive’ SD2 bits = 11 bin. Bit# 9=1, Bit# 8=1 (masked by parameter K184)
E6:3.1=35000 ;Trigger position = 35000 [upi]
PWR.1=1 ;Power on
IND.1 ;Starts the homing process
POS.1=0 ;Goes to position 0 [upi]
WTM.1 ;Waits for the end of the previous movement
:10.1 ;Label 10
TRS.1=0 ;Mapping #0 is activated (alias of parameter K186)
TMK.1=3 ;Controller's outputs Mask = 0011 bin. only actions linked to DOUT2 & DOUT1
are selected (TMK alias of parameter K185)
K184.1=1 ;SD2 bits Mask = 01 bin. only action linked to Bit# 8 is selected
POS.1=45000 ;Goes to the position 45000 [upi]
WTM.1 ;Waits for the end of the previous movement
POS.1=15000 ;Goes to the position 15000 [upi]
WTM.1 ;Waits for the end of the previous movement
TRS.1=1 ;Mapping #1 is activated (alias of parameter K186)
TMK.1=4 ;Controller's outputs Mask = 100 bin. only action linked to DOUT3 of DSC2P
is selected (TMK alias of parameter K185)
K184.1=3 ;SD2 bits Mask = 11 bin. only actions linked to Bit# 8 & Bit# 9 are selected
POS.1=45000 ;Goes to the position 45000 [upi]
WTM.1 ;Waits for the end of the previous movement
POS.1=0 ;Goes to the position 0 [upi]
WTM.1 ;Waits for the end of the previous movement
K172.1=0 ;All digital outputs are set to 0 (DSO-HIO)
----------------------------------------------------------------------------------------------------------------------------------------------
;(Additional part to the example, to show the usefulness of TRS; refer to §13.9.6
)
TRS.1=-1 ;The actual trigger mapping is deactivated
POS.1=45000 ;Goes to the position 45000 [upi]
WTM.1 ;Waits for the end of the previous movement
POS.1=0 ;Goes to the position 0 [upi]
WTM.1 ;Waits for the end of the previous movement
----------------------------------------------------------------------------------------------------------------------------------------------
JMP.1=10 ;Goes to the label 10