
Programming
5.4 Addressing function blocks
ET 200SP Communication module CM 1xDALI (6ES7137-6CA00-0BU0)
Manual, 06/2019, A5E46959434-AA
33
Parameter
The following table shows the parameters of the function block:
Parameter Declaration Data type Memory
area
Description
SCAN
Input
BOOL
I, Q, M, D,
L or Con-
stant
Start the scan procedure upon a rising edge.
DEV_TYP
E
USInt
I, Q, M, D,
L or Con-
stant
Select the device type:
•
1: Control gear
•
2: Input device (Sensor)
ADDRES
S
USInt
I, Q, M, D,
L or Con-
stant
Select the address information of scanned devices:
•
0 to 63: Scan one single short address, it is generally used to
solve the conflict of short address.
•
253: Only scan the unaddressed devices.
•
255: Scan all the devices.
CANCEL
BOOL
I, Q, M, D,
L or Con-
stant
CANCEL = 1: Stop current scan procedure, and return an error.
CM_DALI InOut
"DALI_CT
RL"
The data block of DALI_CTRL specifies the CM 1xDALI which com-
municates with the current function block.
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 the
following values:
•
16#00: Idle
•
16#01 to 16#40: Scanning devic-
es. The value will be increased
when the CM 1xDALI scan a de-
vice.
•
16#41: Assigning short address.
•
16#42: Updating address status.
•
16#7F: Completed
When ERROR = 1, STATUS
shows the detailed error
code. For the detailed mean-
ing of each error code, refer
(Page 106).