1PosSSI/Digital
5.2 Brief Introduction to Commissioning the 1PosSSI/Digital
ET 200S Positioning
Operating Instructions, 05/2007, A5E00124871-04
193
Integrating into the user program
Integrate the following FC 101 block in your user program (in OB 1, for example). This block
requires the DB1 data block with a length of 16 bytes. In the example below, the start is
initiated by setting memory bit 30.0 (in the plus direction) or 30.1 (in the minus direction) with
the programming device. You select rapid or creep feed using memory bit 30.2.
STL Explanation
Block: FC101
L
T
L
T
PID 256
DB1.DBD8
PID 260
DB1.DBD12
//Load feedback values from 1PosSSI/Digital
L
T
L
T
DB1.DBB8
MB8
DB1.DBB12
MB9
//Display status bits
L
DU
T
DB1.DBD8
DW#16#FFFFFF
MD12
//Display actual value
AN
SPB
M30.0
DIRM
L
T
SPA
B#16#13
DB1.DBB0
CTRL
//Travel in plus direction
//(START=1, DIR_P=1, DIR_M=0, SPEED=0, TIPPEN=1)
DIRM: AN
SPB
M30.1
STOP
L
T
SPA
B#16#15
DB1.DBB0
CTRL
//Travel in minus direction
//(START=1, DIR_P=1, DIR_M=0, SPEED=0, TIPPEN=1)
STOP: L
T
B#16#0
DB1.DBB0
//Stop
A DB1.DBX8.2
SPB CTRL
AN
=
DB1.DBX8.0
DB1.DBX0.0
//Set/delete START depending on POS_ACK
CTRL: A
=
M30.2
DB1.DBX0.3
//Set SPEED
L
T
L
T
DB1.DBD0
PAD256
DB1.DBD4
PAD260
//Transfer control values to the 1PosSSI/Digital