EasyManua.ls Logo

Bosch CL500 - Page 86

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--4
1070 072 196-101 (00.06) GB
;Confirmation module
CM -R5CON,5 ;
P0 W -Para1 ;RSS
P1 W -Para2 ;Job number
P2 W -Para3 ;Result bit bar
P3 W -ErgMerk ;Result
P4 B -ErrMerk ;Error identifier
L W -Para3,B
L W -ErrMerk,C
L W -ErgMerk,A
U W 16#FF00,A ;Mask low byte
CPLA W 16#200,A
JPZ inBearb ;High byte 02: being processed
CPLA W 16#100,A
JPZ inBearb ;High byte 01: being processed
CPLA W 16#000,A
JPZ ende ;High byte 00: Command completed
fehler: ;Otherwise error evaluation
L W 3,A ;Status on error
T W A,-Status
L W -ErrMerk,B
JP kmdende
ende: ;Command completed
L W 2,A ;Status on o.k.
T W A,-Status
JP kmdende
inBearb:
JP kmdende
kmdende:
L W -Status,A
CPLA W 2,A
JPAG errbeha ;Jump arithmetically higher to error handling
EM
errbeha:
;here, a special treatment for specific errors can be introduced
;L W -ErrMerk,A
;CPLA W 16#F003,A
;JPZ noerror
;Storing the errors
L W 16#0820,A ; Offset for error in DM
L W -ErrMerk,B
T W B,[A]
INC W A,2
L W -ErgMerk,B
T W B,[A]
EM

Related product manuals