N-COM Setup manual
9
5
Protocol
The monitors can be controlled by an external RS485 command. The standard protocol is NCOM. As an option the monitor can
be set to use the SCOM protocol.
→
The RS485 commands are actively forwarded by each monitor, like a repeater. An un-powered monitor will break the chain.
→
The master (the first device in the chain) is the communication partner for the PC/PLC. A reply will always be addressed from
the master.
5.1
NCOM
Communication settings:
•
RS485
•
Half duplex
•
Frame based
•
Baudrate 115200 (
→
Do not change the original RS232 baudrate 38400 in the unit!
)
•
Data bits 8
•
1 stop bit
•
no parity
A message always consist of a start (0x02) and stop (0x03) byte, address to sent to, command, length of data bytes and
checksum. The length of data can be 0 to 79. See complete description and example in the NCOM-protocol Excel sheet (available
on request).
All commands and listed in: NCOM-protocol_x.x.xlsx, where x.x is version. Please contact us to receive a copy.
Checksum: sum all data in hex: 02+01+99+05+14+00+10+80+FF and inverse the byte, take lsb.
5.1.1
Dimming format
The data package for NCOM dimming has following format:
(fixed)
0x02=
02 startcode. Always 0x02
0x01 =
01 = master monitor. Always 0x01. The master processes all data from the PC or PLC and takes care the other units
also get these data. A reply is always sent to the PC / PLC! Do not send a new message before the reply is received.
0x99 =
command. Always 0x99 for external level
0x05 =
amount of bytes
0x14 =
unit number, in this case unit / monitor number 20 (HEX 14)
0x00 =
level source 1, level to be processed by each unit which listen to unit 8 , source 1. Dimming level is 0
0x10 =
level source 2, see source 1, but level 10(hex) 16(dec)
0x80 =
level source 3, see source 1, but level is 0x80(hex) 128(dec)
0xFF =
level source 4, see source 1, but level is 0xFF ( hex) 255 (dec) = maximum level
0xBB =
checksum: sum all data (byte 0..8) in hex: 02+01+99+05+14+00+10+80+FF and inverse the byte, take lsb.
0x03 =
end of frame, always 0x03. No part of checksum.
Reply, always the same:
STX
Address
Always 01
(master)
Command Data
length
Unit nr
(DEC to
HEX)
Level
source 1
Level
source 2
Level
source 3
Level
source 4
Checksum ETX
0x02 0x01
0x99
0x05
0x14
0x00
0x10
0x80
0xFF
0xBB
0x03
STX
Address
Always 01 (master)
Command Data length Checksum ETX
0x02 0x01
0x9A
0x00
0x62
0x03
Содержание N-COM
Страница 26: ...N COM Setup manual 26 ...