EasyManua.ls Logo

Siemens SIMATIC ET 200S - Interface Modules; Chapter overview; Parameters for interface modules

Siemens SIMATIC ET 200S
382 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1PosSSI/Analog
6.2 Brief Instructions on Commissioning the 1PosSSI/Analog
ET 200S Positioning
Operating Instructions, 05/2007, A5E00124871-04
245
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 Explanation
Block: FC101
L
T
L
T
PID 256
DB1.DBD8
PID 260
DB1.DBD12
//Load feedback values from the 1PosSSI/Analog
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, CTRL_DO=1, INCH=1)
DIRM: AN
SPB
M30.1
STOP
L
T
SPA
B#16#15
DB1.DBB0
CTRL
//Travel in minus direction
//(START=1, DIR_P=0, DIR_M=1, CTRL_DO=1, INCH=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: L
T
L
T
MW32
DB1.DBW23
B#16#0
DB1.DBB1
//Speed for inching mode
L
T
L
T
DB1.DBD0
PAD256
DB1.DBD4
PAD260
//Transfer control values to the 1PosSSI/Analog

Table of Contents

Other manuals for Siemens SIMATIC ET 200S

Related product manuals