User Manual

22 VEGACOM 557 Siemens
S5 functional component
5 S5 functional component
For the STEP 5 user program, internal functional components (HTB handling components)
HTB SYNCHRON, HTB FETCH and HTB RECEIVE are required. To call up the internal function
components, these must be loaded first from the automation device AG S5. The menu selec-
tion is then as follows: Object > Components > Transfer > AG file.
5.1 Synchron order
After the starting-up phase, the CP expects a SYNCHRON order. This is necessary for the
handling of the FETCH / SEND orders. The SYNCHRON component is generally called up with
the STEP 5 user program in the organisation components OB20, OB21 and OB22.
Calling up of handling components SYNCHRON
SPA FB 249 with Simatic S5-115U CPU 942 B
Para- Format Meaning
meter
SSNR KY Interface number
KY = 0,y y = 0 255
The logical number of the interface on which the concerned order can be
found.
See switch position on CP (J53).
BLGR KY Block size
KY = 0,y y=1,2,3,4, 5 for block size 16,32,64, 128 and 256 Bytes.
PAFE BY Error indication with parameter setting failure
BY = MB 0, MB 255; AB 0, , AB 127
Information of a byte, in which a parameter setting failure is entered
Example:
Call up in OB20. Also valid for OB21 and OB22
OB 20
C:CP524_ST.S5D LAE=11
Network 1 0000 Output
:SPA FB 249
Name :SYNCHRON
SSNR : KY 0,0
BLGR : KY 0,4 Block size 128
PAFE : MB 50 Parameter failure in tag byte 50
:BE