Numerical Configuration

Driver Modicon Modbus

Numerical Configuration

Top  Previous  Next

Numerical configuration is performed using N and B parameters of I/O Tags, not using the Device and Item fields available in Elipse E3 or Power, which must be left empty.

This configuration method must be used with Elipse SCADA and with legacy applications. In applications using newer products, such as Elipse E3, Elipse Power, or Elipse OPC Server, it is recommended to use String configuration.

I/O Tags configured numerically reference operations previously configured on configuration window.

 

Operations

As already explained on topic Operations tab, this Driver supports other data types in addition to protocol's native data types. For this reason, the concept of Operation was created on this Driver.

On operations using Modbus functions that read and write bits, such as protocol functions 1, 5, and 15, this Driver always map binary values of each bit to Block Elements, where each Element represents the value of a specific bit.

Operations with eight-bit data types, such as the Byte type, always imply, obviously, on reading at least two bytes (a 16-bit Modbus register). To prevent surprises, this Driver requires that eight-bit data writings be performed in pairs, that is, writing Blocks with an even number of Elements. These operations must be referenced using I/O Tag's N2/B2 parameters, as described later.

 

Configuration Parameters of I/O Tags

The following configuration applies to I/O Tag's N parameters, as well as to I/O Block Tag's B parameters.

·N1/B1: Address of a slave device (PLC) on the network (Slave Id). This address is used on serial networks and can vary from 1 to 247. This parameter can be also configured with value 0 (zero). Thus, this Tag works in Broadcast mode, sending a message to all slave devices (PLC) on the network. In Ethernet (Modbus TCP mode), the address generally used is the IP address, but the Slave Id can still be used when the IP address references a gateway connected to a device network (usually an RS485 network, with Modbus RTU, using a gateway capable of performing a conversion from Modbus TCP to Modbus RTU)

 

NOTE

In Broadcast mode with N1 equal to 0 (zero), users cannot perform readings, only writings. In this mode all devices on the network are addressed, receiving the written value and not returning any response, to avoid network conflicts.

 

·N2/B2: Operation code. References an operation added on Driver's configuration window (please check topic Operations Tab)

·N3/B3: Additional parameter. This parameter is not generally used and can be kept in 0 (zero). It is only used in four situations:

·Modbus functions 20 and 21: For operations that use these functions for file access (functions 20 and 21), the N3/B3 parameters specify the file to access

·Use Bit Mask: For Tags referencing operations with the Use Bit Mask option enabled, the N3/B3 parameter specifies the number of the bit to access (please check topic Operations Tab)

·User-Defined Data Types: For operations that use structures, if the B3 parameter is greater than 0 (zero), it defines the return of an event-reported block array, by using a sequence of Tag's OnRead events (please check topic User-Defined Data Types)

·Gen SOE Special Function: For operations that use the Gen SOE special reading function, the N3/B3 parameter indicates the size of the linked table in the PLC or slave device memory, as the maximum number of supported events (please check topic Elipse Software's Generic SOE Reading Algorithm)

·N4/B4: Register, variable, or bit address on the slave device (PLC) to read or write, according to device's register map (please check device's documentation). It is important to correctly configure the Data Address Model Offset option (please check topic Modbus Tab) and check if manufacturer's documentation does not use offsets used by old Modbus devices, known as Modbus Convention

·Size/Index (Block Tags only): Each Block Element represents a data value of a type defined in the operation used (the N2/B2 parameter). Notice that this protocol only supports Bit or Word types. Thus, if this operation selects the DWord type (32-bit) for each Block Element, this Driver must read two consecutive registers from a device

 

Special Tags

In addition to I/O Tags (Tags referencing operations), there are also special Tags to execute specific Driver functions. These Tags are described on topic Configuring Special Tags.

 
Has this section of the documentation helped you configure this Driver?
Yes No
Comments (optional):