24
MG.10.G1.51 – VLT is a registered Danfoss trademark
Gateway InterBus-S
:S
=STR1
Write_Request executed
:JU
=CON0
Delete conf and send order
:
WCON
:
**** Wait for Write_Confirm.
:DO
=CDB
Open confirmation DB
:L
DW 0
Retrieve conf_identification
:L
KH 0000
:!=F
;is 0 then wait again
:BEB
:L
DL 3
retrieve Result
:><F
is not ZERO
:JC
=FAUL
-> FAULT
:
READ :
*** execute READ-REQUEST ****
:DO
=RDB
Open Request DB
:L
KH 8081
Order identification Read_Request
:T
DW 0
:L
KH 0003
Parametercounter = 3
:T
DW 1
:L
KB 0
:T
DR 4
No. of bytes = 0
:
CR; Object and VLT remain
:A
F 0.1
VKE"1"
:RB
=STR1
STR1=0 AND STR2=1
:S
=STR2
-> wait for Read_confirmation
:JU
=CON0
Delete conf and send order
:
RCON :
*** wait for READ-Confirmation
:DO
=CDB
Open confirmation DB
:L
DW 0
Retrieve confirmation identification
:L
KH 0000
:!=F
is 0 then wait again
:BEB
:L
DL 3
Retrieve Result-Code
:><F
is not 0
:JC
=FAUL
-> FAULT
:L
DW 4
Retrieve PCA received
:SLW 5
only Para-number
:L
=PKEW
Retrieve Para-number sent
:SLW 5
Only Para-number
:!=F
equal then OK
:JC
=OK
Enter value
:JU
=READ
if NOT ZERO, then READ again
Example of pr
ogram for Siemens S5-115U