Bosch CL400 Manual page 84

Hide thumbs Also See for CL400:
Table of Contents

Advertisement

11- -2
PLC Program Examples
;Initialization and composition of the command
vonvorn:
L
W
-CNT,A
INC
W
A,1
T
W
A,-CNT
L
W
0,A
T
W
A,-Status
initdata:
L
W
16#0800,A
L
W
A,B
L
W
19,C
L
W
0,D
il_1:
T
W
D,[B]
INC
W
B,2
DEC
W
C,1
JPN
il_1
INC
W
A,2
L
W
-RssNr,D
O
W
16#0001,D
T
W
D,[A]
INC
W
A,2
L
W
-DB_Nr,D
ADD
W
16#100,D
T
W
D,[A]
INC
W
A,2
L
W
16#4501,D
T
W
D,[A]
INC
W
A,2
L
W
16#4444,D
T
W
D,[A]
INC
W
A,2
L
W
-DBNrAST,D
T
W
D,[A]
INC
W
A,2
L
W
-BlkAdrAST,D
T
W
D,[A]
INC
W
A,2
L
W
-Offset,D
T
W
D,[A]
INC
W
A,2
L
W
-DBNrPST,D
T
W
D,[A]
;Trigger command again
;Increment counter by 1
;Status on Start
;Start command: at first, prepare parameter
;Basic address active DM DW0 for indirect
;addressing to A
;and to B
;Length in C = 16 + 3 words
;Value 0 to D
;Delete entire block
;Value on address
;Increment (byte) address
;Decrease length
;to length = 0
;Number of RSS (R5INIT)
;and of channel 1
;Write into DM
;Generate job number from the
;DM no. + 0x100
;Data type Word (= 01); 45 corresponds to reading 'E'
;Command code PST and AST = 'D'
;Command attribute AST
;Block address AST (CL400 = 0xf0)
;Address AST low part
;Command attribute PST
1070 072 196-101 (00.06) GB

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cl500

Table of Contents