1 FUNCTIONS
1.4 BACnet Request Function (Read Function)
131
1
■ Program example
(0) The instance number of a read destination device is stored.
The ObjectIdentifier of a read target object is stored.
The PropertyIdentifier of a read target property is stored.
'FFFFh' is stored to the ArrayIndex since the read target is not an ARRAY type.
The data type of a read target property is specified.
'0' is stored since the Priority is not specified at reading.
'FFFFh' is stored since Property-2 to Property-4 are not used.
(39) When sending a ReadPropertyMultiple(ReadProperty) service, '1' (send request) is stored to the CONTROL.
(45) When the CONTROL is '3' (normal completion), read data is stored to D100.
'0' (idling) is stored to the CONTROL to reset.
(56) When the CONTROL is '4' (error end), an error code is stored to D102.
'0' (idling) is stored to the CONTROL to reset.
(0)
SM400
DMOV
K3
DMOV
K10
MOV
K85
MOV
H0FFFF
MOV
K4
MOV
K0
MOV
H0FFFF
MOV
H0FFFF
MOV
H0FFFF
(39)
M10
MOV
K1
(45)
=
K3
DMOV
D100
RST
(56)
=
K4
MOV
D102
RST
(67)
END
U0\G302
U0\G304
U0\G306
U0\G307
U0\G308
U0\G309
U0\G312
U0\G318
U0\G324
U0\G300
U0\G300 U0\G310
U0\G300
U0\G300 U0\G301
U0\G300