
Programming
5.6 Diagnostic function blocks
ET 200SP Communication module CM 1xDALI (6ES7137-6CA00-0BU0)
Manual, 06/2019, A5E46959434-AA
59
Parameter Declaration Data type Memory
area
Description
BUSY
Output
BOOL
I, Q, M, D,
L
Status parameter:
•
BUSY = 0: Processing of job is terminated.
•
BUSY = 1: Job is still being committed.
ACTIVE
BOOL
I, Q, M, D,
L
Status parameter:
•
ACTIVE = 0: Job is not yet started.
•
ACTIVE = 1: Job is being executed.
DONE
BOOL
I, Q, M, D,
L
Status parameter:
•
DONE = 0: Job is not yet started or still executing.
•
DONE = 1: Job is executed without errors.
ERROR
BOOL
I, Q, M, D,
L
Status parameter:
•
ERROR = 0: No error occurs.
•
ERROR = 1: Error occurs during processing.
STATUS
BYTE
I, Q, M, D,
L
When ERROR = 0, STATUS has
following three values:
•
16#00: Idle
•
16#01: Executing
•
16#7F: Completed
When ERROR = 1, STATUS
shows the detailed error code. For
the detailed meaning of each
error code, refer to Parameter
5.6.5
DALI_ECG_SET_OPHOUR
Description
DALI_ECG_SET_OPHOUR is used for setting the operation hour of DALI control gear. The
operation hour accumulates when the control gear remains on for one hour. The operation
hour is stored in the CM 1xDALI (refer to data flow path 1 (Page 23)).
Before calling this function block, make sure that the control gear is configured by using
DALI_ECG_ADD (Page 67) and DALI_DEV_UPLOAD (Page 100).
When you set the operating hour of the control gears, the following occurs:
●
If the control gear is not configured before, the error code “16#8D” is shown in the output
parameter of STATUS.
●
If the control gear is configured, but the type of control gear is mismatched, the error code
“16#8B” is shown in the output parameter of STATUS.
It is recommended to reset the operation hour after exchanging the physical control gear
device.