ZBus-LCMS Communication Driver is the driver to communicate with controller of Planet Co.,Ltd. in Korea.
<Figure 1> is read setting example of ZBus-LCMS communication driver.
<Figure 1> Read setting example of ZBus-LCMS communication driver |
Device part of <Figure 1> input Device type(TCP/IP), IP address of PLC(192.168.1.30), service port of TCP/IP protocol ( 4601 ),respectively, according to setting of controller.
ZBus-LCMS communication driver read schedule
Read schedule setting parameters are as follows :
1) Station – ZBus-LCMS controller PGW number (0 ~ 65535). But, don't care, in case of LPCU command. (Fixed to 0)
2) Read command – Hexadecimal command number such as 10, 11, 12, 13, 15, A0,
3) Read start address – Don't care. (Set as 0)
4) Save Start Address for Communication Server - Saving start address of Communication Server.
5) Read Size – Set as 1. (Read size is decided according to each command, refer to <Table 1>)
Read schedule example)
READ, 0, 10, 0, 0, 1,
READ, 0, 11, 0, 20, 1,
<Table 1> is data saving address and contents of ZBus-LCMS communication driver for each read command.
Command number | Contents | Data Saving Address and Contents | Note |
10 | Read of All LPCU Set Info | Start Add + (ID-1) * 3 + 0 : State (Refer to <Table 2>), Start Add + (ID-1) * 3 + 1 : 1st lamp capacity(actual capacity/10), Start Add + (ID-1) * 3 + 2 : 2nd lamp capacity(actual capacity/10) |
LPCU command |
11 | Read of All LPCU State Info | Start Add + (ID-1) * 4 + 0 : State 1 (Refer to <Table 3>), Start Add + (ID-1) * 4 + 1 : State2 (Refer to <Table 3>), Start Add + (ID-1) * 4 + 2 : Lamp1 current used current, Start Add + (ID-1) * 4 + 3 : Lamp2 current used current |
|
12 | Read of All LPCU Schedule | Start Add + 0 : First schedule hour, Start Add + 1 : First schedule minute, Start Add + 2 : First schedule Device ID, Start Add + 3 : First schedule Operating conditions, (5, 2 bit = 1, 2 lighting On/Off) ・. |
|
13 | Read of LMCU date/time | Start Add + 0 : Year (0 ~ 99), Start Add + 1 : Month (1 ~ 12), Start Add + 2 : Day (1 ~ 31), Start Add + 3 : Hour (0 ~ 23), Start Add + 4 : Minute (0 ~ 59) |
|
15 | Read of Wake-up PLC Daemon History | Start Add + 0 : First History Year(0 ~ 99), Start Add + 1 : First History Month(1 ~ 12), Start Add + 2 : First History Day(1 ~ 31), Start Add + 3 : First History Hour(0 ~ 23), Start Add + 4 : First History Minute(0 ~ 59), ・. |
|
A0 | Read of LMCU Version | Start Add + 0 : Version Year(0 ~ 99), Start Add + 1 : Version Month(1 ~ 12), Start Add + 2 : Version Day(1 ~ 31) |
|
B0 | Read of ZBus I/O State All | Start Add + (ID-1) * 2 + 0 : State, Start Add + (ID-1) * 2 + 1 : Error ( 0 : Normal, 1 : Error) ・, |
|
|
Read of group lighting control setting according to illuminance limit value | Start Add + 0 : Setting/Clear(Set : 1, Clear : 0 ), Start Add + 1 : Group ID(Refer to <Table 4>), Start Add + 2 : On illuminance limit value(actual illuminance value/10), Start Add + 3 : Off illuminance limit value(actual illuminance value/10), |
PGW Setting |
( ? = Device ID) |
Read of each lighting control setting according to illuminance limit value | Start Add + 0 : Set or not (0x06 : Set : 0x15 : Not set), (If there isn't setting, 1 ~ 4 value not exist) Start Add + 1 : Device ID, Start Add + 2 : Set/Clear(Set : 1, Clear : 0 ), Start Add + 3 : On illuminance limit value(actual illuminance value/10), Start Add + 4 : Off illuminance limit value(actual illuminance value/10), |
|
|
Read of current illuminace value | Start Add + 0 : Illuminance value(byte), Start Add + 1 : Illuminance value(byte) |
|
( ? = Port No : 0 ~5 ) |
Read of setting information according to Sensing of Movement/Access Control | Start Add + 0 : Set or not(0x06 : Set : 0x15 : Not set), (If there isn't setting, 1~ value not exist) Start Add + 1 : Port No, Start Add + 2 : Set/Clear(Set : 1, Clear : 0 ), Start Add + 3 : Off Timer(1 ~ 59 min), Start Add + 4 : Number of Device (Max 10), Start Add + 5 ~ : Number of ID as much as number of Device |
|
|
Read of PGW date/time | Start Add + 0 : Year(0 ~ 99), Start Add + 1 : Month(1 ~ 12), Start Add + 2 : Day(1 ~ 31), Start Add + 3 : Hour(0 ~ 23), Start Add + 4 : Minute(0 ~ 59), Start Add + 5 : Second(0 ~ 59) |
|
60.1.40 | Read of lighting reservation information | Start Add + 0 : Number of lighting reservation, Start Add + 1 : First reservation hour(0 ~ 23), Start Add + 2 : First reservation minute(0 ~ 59), Start Add + 3 : First control group ID(Refer to <Table 4>), Start Add + 4 : First control operating condition, (5, 2 bit = 1, 2 lighting On/Off) ・. |
|
60.2.0 | Read of ZCT State | Start Add + (ID-1) : Device state, (ID = 1 ~ 55) (State = 0x11 : On, 0x12 : Off, 0x1F : Fail)
|
ZCT Series |
60.3.F1 | Read of RS-485 illuminance value | Start Add + 0 : Illuminance value(byte), Start Add + 1 : Illuminance value(byte) |
RS-485 |
|
Port |
Start Add + 0 : State value. (3 ~ 0 bit : Port 3 ~ 0) |
Port I/O |
|
Read of Input Port state | Start Add + 0 : State value. (5 ~ 0 bit : State of Port 5 ~ 0) ( 0 : Open, 1 : Close ) |
|
|
Read of Relay state | Start Add + 0 : Relay 7 ~ 0 state ( 7 ~ 0 bit ) ( Bit, 0 : Open, 1 : Close ) |
Relay Control |
|
Read of device date/time | Start Add + 0 : Year(0 ~ 99), Start Add + 1 : Month(1 ~ 12), Start Add + 2 : Day(1 ~ 31), Start Add + 3 : Hour(0 ~ 23), Start Add + 4 : Minute(0 ~ 59), Start Add + 5 : Second(0 ~ 59) |
|
60.5.40 | Read of lighting reservation information | Start Add + 0 : Number of lighting reservation, Start Add + 1 : First reservation hour(0 ~ 23), Start Add + 2 : First reservation minute(0 ~ 59), Start Add + 3 : First control group ID(Refer to <Table 4>), Start Add + 4 : First control operating condition, (5, 2 bit = 1, 2 lighting On/Off) ・. |
|
60.5.FD | Read of Firmware version | Start Add + 0 : Year, Start Add + 1 : Month, Start Add + 2 : Day |
|
<Table 1> Read command number and contents of ZBus-LCMS communication driver |
Bit position |
Remarks |
7 bit |
0 : 1 lighting, 1 : 2 lighting |
6~4 bit |
0 : Sodium, 1 : Metal |
3~0 bit |
Not use(always 0) |
<Table 2> Each bit contents of All LPCU Set Info state byte |
Bit position |
Remarks |
7 bit |
0 : 1, 2 lighting Disable, 1 : 1, 2 lighting Enable |
6 bit |
0 : 1, 2 lighting Off, 1 : 1, 2 lighting On |
5 bit |
1 : Stabilizer Error |
4 bit |
1 : Lamp Error |
3 bit |
1 : Relay Error |
2 bit |
1 : Electrical Short of Light Pole |
1 bit |
1 : Electrical Short of Cable |
0 bit |
- |
<Table 3> Each bit contents of All LPCU State Info state 1, 2 byte |
Group ID Value |
Group Type |
0x00 |
All Device ID |
0x20 |
Even number ID |
0x21 |
Odd number ID |
0x30 |
Devide ID address by 3, a remainder of 0 |
0x31 |
Devide ID address by 3, a remainder of 1 |
0x32 |
Devide ID address by 3, a remainder of 2 |
<Table 4> Group Type according to Group ID Value |
If you click the icon in protocol option part, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of ZBus-LCMS communication driver's Option dialog box |
You can set read schedule by using , , button and listbox of <Figure 2>.
<Figure 3> Example of ZBus-LCMS communication driver's read schedule Add/Edit dialog box |
When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.
You can register/delete the LPCU and PGW equipment setting by using write settings.
Digital Write
Digital write and analog write have the same setting parameters except output value.
Analog Write
Analog write setting parameters are as follows :
1) Port Connected Port no. (It is not COM no.)
2) Station Equipment PGW number. ( 0 ~ 65535 ), but it isn't used in case of LPCU command. (Fixed to 0)
3) Address Group ID etc to output. (It decided use or not, according to command type)
4) Extra1 Hexadecimal command
number such as 10,
11, 12, 13, 15, A0,
5) Extra2 Parameter value to output : Output value and Use or not are decided by command type. (Refer to <Table 5>)
Note) Individual control output(Address 1 or 2) of command number 71 of ZBus-LCMS communication driver writing setting is structured as read a current state value, and then output after calculating bit.
Command No.(Extra1) | Contents | Station | Address | Extra2 |
Output value |
Note |
14 | Write current time(Synchronize with computer time) | - | - | - |
- |
LPCU command |
21 | Add schedule | Group ID : Hexadecimal top 2 digit (Refer to <Table 4>), Output value : Hexadecimal sub 2 digit (Refer to <Table 6>) |
Hour : Decimal top 2 digit (0 ~ 23), Min : Decimal sub 2 digit (0 ~ 59) |
|||
22 | Delete schedule |
|
Hour : Decimal top 2 digit (0 ~ 23), Min : Decimal sub 2 digit (0 ~ 59) |
|||
23 | Delete all schedules |
|
|
|||
31 | Add LPCU | ID to Add | 2 light lamp capacity : Hexadecimal top 2 digit, 1 light lamp capacity : Hexadecimal sub 2 digit |
Output value as byte unit (Refer to <Table 6>) |
||
32 | Delete LPCU | ID to Delete |
|
|
||
33 | Delete all LPCU |
|
|
|||
71 | Control LPCU | ID or Group ID to control | Select output position in case of
individual control 0 = Control all lights 1 = Control 1 light, 2 = Control 2 light |
Select individual/group control 0 = Individual Control, 1 = Group Control |
Output value 0 = Off, 1 = On |
|
B1 | Add ZBus I/O ID |
|
ID number to add |
|||
B2 | Delete ZBus I/O ID |
|
ID number to delete |
|||
B3 | Delete all ZBus I/O ID |
|
|
|||
|
Control the group lighting equipment according to illuminance value | PGW ID( 2 byte = 0 ~ 65535 ) | Group ID (Refer to <Table 4>) |
Off illuminance limit value : Hexadecimal top 2 digit, On illuminance limit value : Hexadecimal sub 2 digit |
0 = Clear, 1 = Set |
PGW Setting |
|
Control the individual lighting equipment according to illuminance value | Device ID | Off illuminance limit value : Hexadecimal top 2 digit, On illuminance limit value : Hexadecimal sub 2 digit |
0 = Clear, 1 = Set |
||
( ? = Port No : 0 ~5 ) |
Control the lighting equipment according to Sensing of Movement/Access Control | Off Timer (1 ~ 59 min) |
Number of Device : Hexadecimal top 2 digit, (0 or 1) Device ID : Hexadecimal sub 2 digit |
0 = Clear, 1 = Set |
||
|
Set the PGW time (Synchronize with computer time) |
|
|
|||
60.1.41 | Lighting schedule reservation | Group ID : Hexadecimal top 2 digit, (Refer to <Table 4>), Output value : Hexadecimal sub 2 digit (Refer to <Table 6>) |
Hour : Decimal top 2 digit (0 ~ 23), Min : Decimal sub 2 digit (0 ~ 59) |
|||
60.1.42 | Delete lighting schedule reservation |
|
||||
|
Add ZCT Device |
|
Device ID to register |
ZCT Series | ||
|
Delete ZCT Device |
|
Device ID to delete |
|||
|
Lighting batch control | Group ID (Refer to <Table 4>) |
|
On/Off control value 0 = Off, 1 = On |
||
|
Lighting individual control | Device ID |
|
On/Off control value 0 = Off, 1 = On |
||
60.1.F1 | Delete ZCT Modem House Code |
|
|
|||
|
Control Port I/O Output Port | 0 ~ 3 Port No |
|
Control value 0 = Open, 1 = Close |
Port I/O | |
|
Relay Control | 0 ~ 7 Relay No., or Number combination (Extra2 = 1) |
0 = Control by relay number, 1 = Group Control |
Control value 0 = Open, 1 = Close, (Individual) 0 ~ 255 (Group) |
Relay Control | |
|
Time setting of equipment (Synchronize with computer time) |
|
|
|||
60.5.41 | Lighting schedule reservation | Group ID : Hexadecimal top 2 digit, (Refer to <Table 4>), Output value : Hexadecimal sub 2 digit (Refer to <Table 6>) |
Hour : Decimal top 2 digit (0 ~ 23), Min : Decimal sub 2 digit (0 ~ 59) |
|||
60.5.42 | Delete lighting schedule reservation |
|
||||
<Table 5> Range and contents of output parameter by write command number which used at ZBus-LCMS communication driver |
Bit | Output Type |
7 bit | 1 : Reset |
6 bit | - |
5 bit | 1 : 1 lighting ON, 0 : 1 lighting Off |
4 ~ 3 bit | - |
2 bit | 1 : 2 lighting ON, 0 : 2 lighting Off |
1 ~ 0 bit | - |
<Table 6> Meaning of each output bit for output |
Write example 1)
PORT : 0 STATION : 1 ADDRESS : 0000 EXTRA1 : 71 EXTRA2 : 0
The setting parameter shown above is example of writing setting.
After writing as analog, you can control(On = 1/Off = 0) the no.1 and 2 lighting of no.1 Device ID.
Write example 2)
PORT : 0 STATION : 1 ADDRESS : 0001 EXTRA1 : 71 EXTRA2 : 0
The setting parameter shown above is example of writing setting.
After writing as analog, you can control(On = 1/Off = 0) the no.1 lighting of no.1 Device ID.
Write example 3)
PORT : 0 STATION : 0 ADDRESS : 0000 EXTRA1 : 71 EXTRA2 : 1
The setting parameter shown above is example of writing setting.
After writing as analog, you can control(On = 1/Off = 0) the no. 1 and 2 lighting of all Device ID which is connected to 0 port.
Write example 4)
PORT : 0 STATION : 257 ADDRESS : 0000 EXTRA1 :
The setting parameter shown above is example of writing setting.
After writing as analog, you can control(On = 1/Off = 0) the no. 1 and 2 lighting of all Device ID of no.257(0101h) PGW ID which is connected to 0 port.
<Figure 4> and <Figure 5> are appearance of ZBus-LCMS equipment(demo).
<Figure 4> Example of LPCU equipment of ZBus-LCMS |
<Figure 5> Example of ZBus-LCMS PGW equipment |