Siemens simatic et 200s Operating Instructions Manual page 245

Positioning
Hide thumbs Also See for simatic et 200s:
Table of Contents

Advertisement

Creating Blocks and Integrating Them 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. Select the speed for inching mode using memory word 32.
STL
Block: FC101
L
T
L
T
L
T
L
T
L
DU
T
AN
SPB
L
T
SPA
DIRM:
AN
SPB
L
T
SPA
STOP:
L
T
A
SPB
AN
=
CTRL:
L
T
L
T
L
T
L
T
ET 200S Positioning
Operating Instructions, 05/2007, A5E00124871-04
Explanation
PID 256
//Load feedback values from the 1PosSSI/Analog
DB1.DBD8
PID 260
DB1.DBD12
DB1.DBB8
//Display status bits
MB8
DB1.DBB12
MB9
DB1.DBD8
//Display actual value
DW#16#FFFFFF
MD12
M30.0
DIRM
B#16#13
//Travel in plus direction
DB1.DBB0
//(START=1, DIR_P=1, DIR_M=0, CTRL_DO=1, INCH=1)
CTRL
M30.1
STOP
B#16#15
//Travel in minus direction
DB1.DBB0
//(START=1, DIR_P=0, DIR_M=1, CTRL_DO=1, INCH=1)
CTRL
B#16#0
//Stop
DB1.DBB0
DB1.DBX8.2
CTRL
DB1.DBX8.0
//Set/delete START depending on POS_ACK
DB1.DBX0.0
MW32
//Speed for inching mode
DB1.DBW23
B#16#0
DB1.DBB1
DB1.DBD0
//Transfer control values to the 1PosSSI/Analog
PAD256
DB1.DBD4
PAD260
6.2 Brief Instructions on Commissioning the 1PosSSI/Analog
1PosSSI/Analog
245

Advertisement

Table of Contents
loading

Table of Contents