Longo programmable controller LPC-2.NE1 module
4
OPERATION
4.1 IP and MAC setting
Module uniquely assigned MAC is not saved in NE1 module memory. MAC belonging to
each module is written on the label on the housing. Module gets its IP & MAC parameters
from PLC application, therefore this values should be used in application running in the
main control unit to which module is attached. This parameters are configured with
following variables:
variable name
value
NE1_x_IP1
NE1_x_IP2
NE1_x_IP3
NE1_x_IP4
most significant byte of IPv4 address notation
:
:
least significant byte of IPv4 address notation
NE1_x_MAC1
NE1_x_MAC2
:
NE1_x_MAC6
first hex noted pair of OUI 48-bit MAC notation
second hex noted pair of OUI 48-bit MAC notation
:
last hex noted pair of OUI 48-bit MAC notation
4.2 Modbus protocol usage
LPC-2.NE1 Ethernet adapter is Modbus slave device and supports Modbus commands as
defined in protocol specification V1.1a, using TCP/IP protocol, RTU transmission mode, ISO
OSI model.
Device address supported by LPC-2.NE1 module:
•
Coils (bit): 128
•
Registers (word): 64
Functions supported by LPC-2.NE1 module:
•
01 (0x01) Read Coils
•
02 (0x02) Read Discrete Inputs
•
03 (0x03) Read Holding Registers
•
04 (0x04) Read Input Registers
•
05 (0x05) Write Single Coil
•
06 (0x06) Write Single Register
•
15 (0x0f) Write Multiple Coils
•
16 (0x10) Write Multiple Registers
NOTE:
If Modbus parameters are not valid (illegal address,..), module replies with
exception code response.
For better understanding of Modbus protocol refer to
Modbus_Application_Protocol_V1_1a.pdf document.
7