Lenze Lecom-A/B Protocol Delta A. Hmi Factory Settings: Appendix B Communication - Scredit Software User Manual
Lenze Lecom-A/B Protocol Delta A. Hmi Factory Settings: Appendix B Communication - Scredit Software User Manual
Lenze Lecom-A/B Protocol Delta A. Hmi Factory Settings: Appendix B Communication - Scredit Software User Manual
NOTE
2) Ensure not to use the general RS-232 5-pin cable. This is because if pin 2, 3, 5, 7, 8 are all connected to
the drive, the drive can not recognize the communication signal and can not identify what kind of
communication it is.
3) For more detailed information of pin definition of cable connectors, please refer to the C. Connections
(Connector Pinouts) in page B-26 and B-27.
4) Ensure the HMI communication data format (The communication data written into the drive) is correct.
The Word “m” in the following table is used to specify the HMI communication data format.
5) Ensure the HMI display data format (Property table/Setting value...etc.) is correct.
6) When using broadcast function, please check if the using device is available. This is because the
broadcast function can be activated only when the user choose “write only” device for broadcast station
number (only choose setting value/setting constant (button) and then the broadcast function can be
used). If choosing other devices, the system will ask you to read back the drive setting value, so please
ensure to choose the correct device. If choosing the incorrect devices, a “Controller Station Number
Error…” fault message will display on HMI screen.
Read/Write Range
Word No. Bit No.
Register Type Format Data Length
LowByte HighByte
subcode
Parameter without subcode CWn n: 1 ~ 10000 N/A N/A Word
CWn.m n: 1 ~ 10000 m: 0 ~ 23 N/A Word
Parameter with subcode CWn/y n: 1 ~ 10000 N/A y:1 ~ 255 Word
CWn/y.m n: 1 ~ 10000 m: 0 ~ 23 y:1 ~ 255 Word
Read/Write Range
Word No. Bit No.
Register Type Format Data Length
LowByte HighByte
subcode
Parameter without subcode CDn n: 1 ~ 10000 N/A N/A DoubleWord
CDn.m n: 1 ~ 10000 m: 0 ~ 23 N/A DoubleWord
Parameter with subcode CDn/y n: 1 ~ 10000 N/A y:1 ~ 255 DoubleWord
CDn/y.m n: 1 ~ 10000 m: 0 ~ 23 y:1 ~ 255 DoubleWord
NOTE
Read/Write Range
Word No. Bit No.
Register Type Format
LowByte HighByte
subcode
Parameter without subcode CBn.b n: 1 ~ 10000 b: 0 ~ 31 N/A
Parameter with subcode CBn/y.b n: 1 ~ 10000 b: 0 ~ 31 1 ~ 255
Only VH type parameter can provide Bit read/write function (it is convenient for the user to read/write Bit No.
of parameters).
CBn.b, CWn (CWn.m), CDn (CDn.m): read/write address is the same (address n).
NOTE
1) Since the data format of this controller is complicated (a. VS (String format), b. VO (Octet string format
data blocks), c. VH (ASCII hexadecimal format)(1, 2, 4 bytes), d. VD (ASCII decimal format)(positive,
negative, decimal,..)) and the communication format is not compatible, therefore, it is needed to ensure
the HMI communication data format is correct, or the error may occur.
2) Registers: only can read/write the data of ASCII hexadecimal format (VH), ASCII decimal format (VD)
(i.e. Either VH or VD data format can be set via communication.)
Contacts: only can read/write the data of ASCII hexadecimal format (VH)
HMI display data format (Property table/Setting value...etc.) should also be correct.
Explanation:
y Registers: only can read/write the data of VH, VD. HMI needs to set communication data format
(please refer to 4), 5) and 6)). String format (VS), and Octet string format for data blocks (VO) can
not be used. If the controller returns the data in VS or VO format, HMI will show “……Value Is
Incorrect” on the screen.
y Contacts: only can read/write the data of ASCII hexadecimal format (VH). Only VH type parameter
can provide Bit read/write function. If the controller returns the data in other format, HMI will show
“……Value Is Incorrect” on the screen.
y Do not write the inexistent Bit address, or HMI will show “….Write …. Command Can Not be
Executed” on the screen.
For example: CW470/1. The valid value of CW470/1 is within the range of 0 ~ 0xFF. Therefore, Bit
8 ~31 is not existed. Although HMI will show the value of Bit 8 ~31 is 0, the user can not write or set
the value.
y The settings of ASCII hexadecimal format (VH) and ASCII decimal format (VD) should be correct. If
the VD data is set in VH format in HMI (m value is undefined, or m=22 or 23) or the VH data is set
in VD format in HMI (m=0 ~ 21), when HMI write the data, HMI will show “….Write …. Command
Can Not be Executed” on the screen or tell the user the write value is incorrect.
y The decimal place of ASCII decimal format (VD) should be set correctly, or the write value will not
be correct. The decimal place displayed on HMI should also be correct, or the display value will be
incorrect.
y ASCII hexadecimal format (VH), 2 numbers (m = 22). The value is limited to 2 numbers. Using this
format the write value will be limited within the range of 0 ~ 0xFF (low byte) automatically.
y The valid station number is from 0 to 99. If exceeds this range, HMI will stop read/write operation
and show “Controller Station Number Error …”on the screen.
y Some controller parameters are in Word and some are in Double Word. Therefore, there are two
kinds of data format: Word ( CWn (CWn.m), CWn/y(CWn/y.m) ) and Double Word ( CDn (CDn.m),
CDn/y(CDn/y.m) ).
y Furthermore, regarding to Bit No., HMI only read/write 32Bit (Bit0 ~ Bit31) of parameters in VH
format.
y CWn(CWn.m), CDn(CDn.m), or CBn.b: read/write address is the same (address n), but
When symbol is set to CW, read/write value is the low word of parameters (n) only,
When symbol is set to CD, read/write value is the Double Word of whole parameters (n),
When symbol is set to CB, read/write value is the Bit (b) No. of parameters (n).
(m : HMI communication data format)
y (CWn/y(CWn/y.m), CDn/y(CDn/y.m), CBn/y.b: read/write address, which y subcode is the
same(address n), but
When symbol is set to CW, read/write value is the low word of parameters (n) only,
When symbol is set to CD, read/write value is the Double Word of whole parameters (n),
When symbol is set to CB, read/write value is the Bit (b) No. of parameters (n).
(m : HMI communication data format)
y Actually when using HMI,
i) When using devices that the unit is in Word (e.g. numeric devices (numeric value display,
numeric value input…)…), the read/write value will be the same no matter the read/write
address format is set to CWn or CDn as read/write value is the low word of parameters (n)
only.
ii) When using devices that the unit is in Double Word (e.g. numeric devices (numeric value
display, numeric value input…)…), if the read/write address format is set to CWn,
read/write value is coming from the low word of CWn and CWn+1 these two addresses.
(The low word of CWn is regarded as “low word” and the low word of CWn+1 is regarded
as “high word”, and then combining “low word” and “high word” to a Double Word.)
If the read/write address format is set to CDn, read/write value is the whole Double Word
of CDn (1 address).
iii) When using character device (e.g. character display, character input…), if the read/write
address format is set to CWn, the read/write value is coming from the low word of CWn,
CWn+1, CWn+2, …every address.
If the read/write address format is set to CDn, read/write value is the whole Double Word
of CDn, CDn+1, CDn+2,…every address.
iv) When using “Multiple Duplicate” function, if the Word and Bit addresses exceed the valid
range, the Word and Bit addresses will be set to 0 automatically. Sometime error will
occur to remind the user when compiling.
v) CBn.b, CBn/y.b are added for the user to read and write Bit No. of parameters in VH
format more easily.
vi) Only can read or write 1 parameter for each communication.
Pin 2, 3, 5 are for RS-232 communication. Pin 7, 8 are for RS-485 communication.
RS-232
RS-485