EasyManua.ls Logo

Bosch CL500 - Page 85

Bosch CL500
96 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...
PLC Program Examples
11--3
1070 072 196-101 (00.06) GB
INC W A,2
L W -BlkAdrPST,D ;ZS block address PST
T W D,[A]
INC W A,2
L W -Offset,D ;Address PST low part
T W D,[A]
INC W A,2
L W -Anzahl,D ;Amount of words to be read
T W D,[A]
INC W A,2
L W 16#7F7F,D ;e.g. without coordination marker
T W D,[A]
INC W A,2
L W -IPAdr_H,D ;Internet address high word
T W D,[A]
INC W A,2
L W -IPAdr_L,D ;Internet address low word
T W D,[A]
;Command execution
Request: ; Transmit request
CM -R5REQ,6
P0 W 16#44 ; < Data range for protocol parameters
P1 W -DBnr ; < Data module number
P2 W 0 ; < Offset
P3 W 16#0001 ; < Job bit bar
P4 W -ErrMerk ; > Error message of the FM
P5 W -ErgMerk ; > Result bit bar
L W -ErgMerk,B
L W -ErrMerk,A
CPLA W 0,A ;if no error: continue
JPZ weiter
L W 3,A ;error during request
T W A,-Status
EM
weiter:
L W 1,A ; Set status to 1 (= Running)
T W A,-Status
execute: ; Polling of command
waitCon: ; Wait for confirmation
L W 16#0800,A ; Basic address for indirect addressing act. DM
INC W A,2 ; Address on DW1
L W [A],B ; Take RSS no. from DW1
T W B,-Para1
INC W A,2 ; Address on DW2
L W [A],B ; Take job number from DW2
T W B,-Para2

Related product manuals