Input DescriptionΒΆ

../_images/3218c389e38a1d560a33139000eba54e

EN

Data_Type Default_Value Range Unit
BOOL FALSE TRUE/FALSE -

The input EN has to be driven in edge triggered mode.

The execution of the Function Block is started with a positive edge on the input EN.

In the first call it evaluates its inputs and creates a local copy of them. Afterwards it starts its internal algorithm. It may take several PLC task cycles until it is executed.

Once the execution is completed DONE and its other outputs are set. To start the Function Block again a new positive edge on the input EN has to be applied.

ETH   BYTE \    (ETHERNET index number)

At input ETH, the ETHERNET index number is specified. The assignment is as follows:

1 ETHERNET interface at Onboard ETHERNET 1
2 ETHERNET interface at Onboard ETHERNET 2
11 ETHERNET interface at Communication Module slot 1 *)
21 ETHERNET interface at Communication Module slot 2 *)
31 ETHERNET interface at Communication Module slot 3 *)
41 ETHERNET interface at Communication Module slot 4 *)
51 ETHERNET interface at Communication Module slot 5 *)
61 ETHERNET interface at Communication Module slot 6 *)

*) The Communication Modules are serially numbered from right to left, starting with module number 1.

IP_ADR   DWORD \   (IPaddress)

At IP_ADR, the IP address of the server has to be specified to which the telegram should be sent. Each byte in IP_ADR represents one octet of the address.

Example:

IP address 192.15.24.2,

IP_ADR (hex) 16#C00F1802,

IP_ADR (dec) 3222214658

UNIT_ID   BYTE \   (unit \ ID)

At input UNIT_ID, the address of the MODBUS slave must be specified which is connected serially to the MODBUS server defined by IP_ADR. If no further slaves are connected, this input is not used.

FCT

Data_Type Default_Value Range Unit
BYTE - - -

The function code of the request telegram is specified at input FCT.

01 or 02 Read n bits
03 or 04 Read n words
05 Write one bit (encoded in one word)
06 Write one word
07 Read 8 Bit
15 Write n bits (encoded in one byte)
16 Write n words
22 Mask write
23 Read/write multiple words in one telegram

Note

The max. telegram length for Onboard ETHERNET CPUs with function code 3/4 is 96 words.

The max. telegram length for Onboard ETHERNET CPUs with function code 15 is 1536 bits.

ADDR   WORD \   (address)

Input ADDR is used to specify the operand/register address in the server from which on data should be read or written. The access to operands of AC500 devices in open MODBUS on TCP/IP (server mode) is defined via the MODBUS address list.

Only operands that are listed in the MODBUS address list may be used. When accessing other devices, ADDR is freely selectable. The valid ranges have to be gathered from the corresponding device description.

NB   WORD \   (number)

At input NB, the number of data to be written or read is specified. The unit of NB depends on the selected function. For bit accesses the number of bits, for word and double word accesses the number of words is specified at NB. The following restrictions apply to the length:

FCT NBmax
Dec Hex Serial MODBUS on TCP/IP
01 or 02 01 or 02 2000 bits

255 bits (up to firmware version V01.33)

1800 bits (from firmware version V01.41)

1536 bits (PM573/PM583 only)

03 or 04 03 or 04 125 words / 62 double words 125 words / 62 double words
05 05 1 bit 1 bit
06 06 1 word 1 word
07 07 8 bits 8 bits
15 0F 1968 bits

255 bits (up to firmware version V01.33)

1800 bits (from firmware version V01.41)

1536 bits (PM573/PM583 only)

16 10 123 words / 61 double words 123 words / 61 double words
22 16 Write: 1 word Write: 1 word
23 17

Read: 125 words / 62 double words

Write: 123 words / 61 double words

Read: 125 words / 62 double words

Write: 123 words / 61 double words

DATA

Data_Type Default_Value Range Unit
DWORD - - -

At input DATA, the address of the first operand in the master is specified, from which data are copied/written to the slave or to which the data read by the slave should be stored. For this purpose it is necessary that the operand type (e.g. bit) matches the selected function (e.g. FCT 1, read n bits).

If using MODBUS function codes 22 or 23, the according data structures COM_MOD_FCT22_TYPE COM_MOD_FCT22_TYPE or COM_MOD_FCT23_TYPE COM_MOD_FCT23_TYPE must be defined and applied to DATA.