[go: up one dir, main page]

0% found this document useful (1 vote)
131 views18 pages

Fuji HMI Modbus Settings

The document outlines the connection settings for Modbus communication using PLCs, detailing both serial (Modbus RTU) and Ethernet (Modbus TCP/IP) connections. It provides specific configurations for different signal levels, baud rates, and communication formats, as well as instructions for setting device memory and communication settings. Additionally, it includes examples and notes on creating screen programs and managing device memory effectively.

Uploaded by

Ela Elanthamilan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
131 views18 pages

Fuji HMI Modbus Settings

The document outlines the connection settings for Modbus communication using PLCs, detailing both serial (Modbus RTU) and Ethernet (Modbus TCP/IP) connections. It provides specific configurations for different signal levels, baud rates, and communication formats, as well as instructions for setting device memory and communication settings. Additionally, it includes examples and notes on creating screen programs and managing device memory effectively.

Uploaded by

Ela Elanthamilan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

30.

MODBUS
30.1 PLC Connection
30.1 PLC Connection 30-1

30.1 PLC Connection

Serial Connection

The TS works as the Modbus RTU master station. It can be connected with devices that support Modbus RTU communication.

PLC Selection on the


Connected Device Signal Level TS Port Connection
Editor
RS-232C COM2 Wiring diagram 1 - COM2
RS-422 COM1 Wiring diagram 1 - COM1
MODBUS RTU Modbus RTU slave device
COM1 Wiring diagram 2 - COM1
RS-485
COM3 Wiring diagram 1 - COM3
RS-232C COM2 Wiring diagram 1 - COM2
MODBUS RTU EXT RS-422 COM1 Wiring diagram 1 - COM1
Modbus RTU slave device
Format COM1 Wiring diagram 2 - COM1
RS-485
COM3 Wiring diagram 1 - COM3
RS-232C COM2 Wiring diagram 1 - COM2
RS-422 COM1 Wiring diagram 1 - COM1
MODBUS ASCII MODBUS ASCII slave device
COM1 Wiring diagram 2 - COM1
RS-485
COM3 Wiring diagram 1 - COM3

Ethernet Connection

The TS works as the Modbus TCP/IP master station. It can be connected with devices that support Modbus TCP/IP slave
communication.

PLC Selection on the Editor Applicable Device TCP/IP UDP/IP Port No.
MODBUS TCP/IP (Ethernet) Modbus TCP/IP slave device
MODBUS TCP/IP (Ethernet) Sub Station Modbus TCP/IP slave device 502 *
MODBUS TCP/IP (Ethernet) EXT Format Modbus TCP/IP slave device

* Depending on the device specification, an arbitrary port number can be specified.


30-2 30. MODBUS

30.1.1 MODBUS RTU

Communication Setting

Editor
Communication setting
(Underlined setting: default)

Item Setting Remarks


1 : 1 / 1 : n / Multi-link2 /
Connection Mode Multi-link2 (Ethernet) /
1 : n Multi-link2 (Ethernet)
Signal Level RS-232C / RS-422/485
Baud Rate 4800 / 9600 / 19200 / 38400 / 57600 / 115K bps
Data Length 8 bits
Stop Bit 1 / 2 bits
Parity None / Odd / Even
Target Port No. 0 to 255 0: Broadcast

Modbus format setting


Make communication format settings for each connected device.
* If the maximum number of words to be read or written varies among the address ranges, select [MODBUS RTU EXT Format] for
[Model] in the connection device selection dialog and make the extended format setting. For more information, see page 30-4.

No. 1 to 255 Port number of the connected device


Read Coil
Format setting
Write to Coil Set the number of words to be read or written at one time of communication for each device. For details on
Read Input Relay the maximum value that can be set on V-SFT, see the table shown below.*1
Read Holding Register The format setting also serves as the function code*1 setting used for Modbus communication. The
available function codes vary depending on the device. Refer to the instruction manual of the connected
Write Holding Register
device as well as the table shown below*1, and set the options on the dialog correctly.
Read Input Register

*1 Format setting on V-SFT and function code for the Modbus communication

V-SFT Format Setting Modbus Communication


Operation Maximum Setting Function Code
Read Coil 992 bits 01H
1 bit 1 word 05H
Write to Coil
16 bits or more 992 bits 0FH
Read Input Relay 992 bits 02H
Read Holding Register 62 words 03H
Write Holding 1 word 1 word 06H
Register 2 words or more 62 words 10H
Read Input Register 62 words 04H
30.1 PLC Connection 30-3

PLC
Make communication settings of the connected device according to the settings made for the TS. For more information on
settings, refer to the instruction manual issued by the manufacturer.

Available Device Memory

The available setting range of device memory varies depending on the PLC model. Be sure to set within the range available for
the PLC to be used. Use [TYPE] when assigning indirect device memory for macro programs.

Device Memory TYPE Remarks


0 (output coil) 00H
1 (input relay) 01H
4 (holding register) 02H
3 (input register) 03H

Notes on Creating Screen Programs


On the editor, the device memory address is specified in decimal notation. Thus, when the address of a connected device is
expressed in hexadecimal notation, convert the address into decimal one and add “1”.

Setting example
 When specifying the PV (current value) RAM address “3814H” for Modbus RTU connection with Yamatake’s “SDC35”:
1) Convert the hexadecimal address into the decimal one.
3814HEX  14356DEC
2) Add “1” to the decimal address.
14356 + 1 = 14357DEC
3) On the editor, specify “14357” for the holding register (4).
30-4 30. MODBUS

30.1.2 MODBUS RTU EXT Format


In the case with some Modbus RTU devices, the function code to be used or the maximum value to be read or written at one
time varies depending on the address range even in the same device memory.
When [MODBUS RTU EXT Format] is selected, the address range as well as the communication format can be set as desired
according to the specifications of the connected device. With [MODBUS RTU EXT Format] selected, since access will not be
made to any address other than those specified in the format setting, communication can be performed effectively.

Communication Setting

Editor
Communication setting
(Underlined setting: default)

Item Setting Remarks


1 : 1 / 1 : n / Multi-link2 /
Connection Mode Multi-link2 (Ethernet) /
1 : n Multi-link2 (Ethernet)
Signal Level RS-232C / RS-422/485
Baud Rate 4800 / 9600 / 19200 / 38400 / 57600 / 115K bps
Data Length 8 bits
Stop Bit 1 / 2 bits
Parity None / Odd / Even
Target Port No. 0 to 255 0: Broadcast

Extended format setting

Make communication format settings for the connected device.

[Common] [Individual]

A “*” mark is displayed in the “No.” column of a


user-specified communication format.
For details on the default communication format, see
“[Format Detail Display] dialog” on the next page.

Common Used to set the communication format commonly to all station numbers.
Discrete Used to set a communication format for respective station numbers.
Detail Displays the [Format Detail Display] dialog.
No. Displays the station number of the connected device.
Station Name Sets and displays the station name of the connected device.
30.1 PLC Connection 30-5

[Format Detail Display] dialog

Register the communication format for each of the specified address range. Make the setting according to the device
specification.

Four types of communication formats shown


to the left have been registered by default.

Station Name Register a desired station name.


Target Port No. When [Discrete] is selected, the number of the selected station is automatically displayed.
Select the address notation.
HEX/DEC
HEX / DEC
Displays the currently registered device memory name.
Device
Coil / Input Relay / Holding Register / Input Register (default settings: one each, deletion impossible)
Specify the address range for each device memory.
HEX: 0000 to FFFF
Address DEC: 1 to 65536
* The address range must not be duplicated.

Read Command Set the communication format used for reading from or writing into the specified address range.
 [Read Command] / [Write Command]
Maximum Read Value Specify the function code *1 to use for Modbus communication.
The available function codes vary depending on the device. Refer to the instruction manual of the connected
device as well as the table shown below *1, and set the options on the dialog correctly.
Write Command
 [Maximum Read Value] / [Maximum Write Value]
Maximum Write Value Set the maximum value to be read or written at one time. Make the setting according to the device
specification.
For details on the maximum value that can be set for each device memory by using V-SFT, see the table shown
below. *1
Specify the ordering of data.
Order of the data
Little Endian / Big Endian
Displays the number of currently registered formats.
Number of the
Default: 4 (deletion impossible)
registered format
Max.: 255

*1 Device memory setting on V-SFT and function code for the Modbus communication

V-SFT Format Setting Modbus Communication


Operation Max. Read/Write Value Function Code
Read 2000 bits 01H
Coil 1 bit 1 bit 05H
Write
2 bits or more 800 bits 0FH
Input Relay Read 2000 bits 02H
Read 125 words 03H
Holding Register 1 word 1 word 06H
Write
2 words or more 100 words 10H
Input Register Read 125 words 04H
30-6 30. MODBUS

Adding a format
To add a format, select a device memory, right-click on the selected device memory and select [Add].

Add
Right click

Setting example

When connecting a device which has the following specifications to station number 1:

Max.
Function Code Operation Communication Available Address Example
Points
HEX: 0000 to 00FF DEC: 1 to 256 (1)
01H Read coil 4000
HEX: 2EE0 to 4E1F DEC: 12001 to 20000 (2)
05H Write single coil 1 HEX: 0000 to 00FF DEC: 1 to 256 (1)
0FH Write multiple coils 1000 HEX: 2EE0 to 4E1F DEC: 12001 to 20000 (2)
HEX: 0000 to 103F DEC: 1 to 8000 (3)
03H Read holding register 200
HEX: 2EE0 to 2FDF DEC: 12001 to 12256 (4)
06H Write single holding register 1 HEX: 2EE0 to 2FDF DEC: 12001 to 12256 (4)
Write multiple holding
10H 50 HEX: 0000 to 1F3F DEC: 1 to 8000 (3)
registers

 Read/write coil
(1) 0000 to 00FF (HEX)
- Register “01H” (function code for reading) to [Read Command] or “05H” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 4000. Accordingly, register “2000 bits” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 1. Accordingly, register “1 bit” for [Maximum
Write Value] on V-SFT.

(2) 2EE0 to 4E1F (HEX)


- Register “01H” (function code for reading) to [Read Command] or “0FH” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 4000. Accordingly, register “2000 bits” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 1000. Accordingly, register “800 bits” for
[Maximum Write Value] on V-SFT.

 Read/write holding register


(3) 0000 to 1F3F (HEX)
- Register “03H” (function code for reading) to [Read Command] or “10H” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 200. Accordingly, register “125 words” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 50. Accordingly, register “50 words” for
[Maximum Write Value] on V-SFT.

(4) 2EE0 to 2FDF (HEX)


- Register “03H” (function code for reading) to [Read Command] or “06H” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 200. Accordingly, register “125 words” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 1. Accordingly, register “1 word” for [Maximum
Write Value] on V-SFT.
30.1 PLC Connection 30-7

(1) Access will not be made to any addresses other


(2) than those not registered on the dialog shown on
the left.
(3)  Coil: 0100 to 2EDF, 4E20 to FFFF
(4)  Holding register: 1040 to 2EDF, 2FE0 to FFFF

PLC
Make communication settings of the connected device according to the settings made for the TS. For more information on
settings, refer to the instruction manual issued by the manufacturer.

Available Device Memory

The contents of “Available Device Memory” are the same as those described in “30.1.1 MODBUS RTU”.
30-8 30. MODBUS

30.1.3 MODBUS ASCII

Communication Setting

Editor
Communication setting
(Underlined setting: default)

Item Setting Remarks


1 : 1 / 1 : n / Multi-link2 /
Connection Mode Multi-link2 (Ethernet) /
1 : n Multi-link2 (Ethernet)
Signal Level RS-232C / RS-422/485
Baud Rate 4800 / 9600 / 19200 / 38400 / 57600 / 115K bps
Data Length 7 / 8 bits
Stop Bit 1 / 2 bits
Parity None / Odd / Even
Target Port No. 0 to 255 0: Broadcast

Format setting

Make communication format settings for each connected device. (See page 30-2.)

PLC
Make communication settings of the connected device according to the settings made for the TS. For more information on
settings, refer to the instruction manual issued by the manufacturer.

Available Device Memory

The contents of “Available Device Memory” are the same as those described in “30.1.1 MODBUS RTU”.
30.1 PLC Connection 30-9

30.1.4 MODBUS TCP/IP (Ethernet)

Communication Setting

Editor
Make the following settings on the editor. For more information, see “1.3.2 Ethernet Communication (TS1100Si/TS1070Si
Only)”.
 IP address for the TSi unit
 Port number for the TSi unit at [Communication Setting] in the [PLC Properties] window ([Hardware Setting])
 PLC’s IP address and port number for [PLC Table] under [Target Settings] in the [PLC Properties] window ([Hardware
Setting])
 [Format Setting] in the [PLC Properties] window ([Hardware Setting])

Format setting
Make communication format settings for each connected device. (See page 30-2.)
* If the maximum number of words to be read or written varies among the address ranges, select [MODBUS TCP/IP (Ethernet) EXT
Format] for [Series] in the [Connection Device Selection] dialog and make extended format settings. For more information, see
page 30-10.

PLC
Make communication settings of the connected device according to the settings made for the TSi. For more information on
settings, refer to the instruction manual issued by the manufacturer.

Available Device Memory

The available setting range of device memory varies depending on the PLC model. Be sure to set within the range available for
the PLC to be used. Use [TYPE] when assigning indirect device memory for macro programs.

Device Memory TYPE Remarks


0 (output coil) 00H
1 (input relay) 01H
4 (holding register) 02H
3 (input register) 03H

Notes on Creating Screen Program


On the editor, the device memory address is specified in decimal notation. Thus, when the address of a connected device is
expressed in hexadecimal notation, convert the address into decimal one and add “1”. (See page 30-3.)
30-10 30. MODBUS

30.1.5 MODBUS TCP/IP (Ethernet) EXT Format


In the case with some Modbus TCP/IP (Ethernet) devices, the function code to be used or the maximum value to be read or
written at one time varies depending on the address range even in the same device memory.
When [MODBUS TCP/IP (Ethernet) EXT Format] is selected, the address range as well as the communication format can be set
as desired according to the specifications of the connected device. With [MODBUS TCP/IP (Ethernet) EXT Format] selected,
since access will not be made to any address other than those specified in the format setting, communication can be
performed effectively.

Communication Setting

Editor
Make the following settings on the editor. For more information, see “1.3.2 Ethernet Communication (TS1100Si/TS1070Si
Only)”.
 IP address for the TSi unit
 Port number for the TSi unit at [Communication Setting] in the [PLC Properties] window ([Hardware Setting])
 PLC’s IP address and port number for [PLC Table] under [Target Settings] in the [PLC Properties] window ([Hardware
Setting])
 [Extended Format Setting] in the [PLC Properties] window ([Hardware Setting])

Extended format setting


Make communication format settings for the connected device.

[Common] [Discrete]

The “*” mark is attached to “No.” of the user-specified


communication format.
For details on the default communication format, see
“[Format Detail Display] dialog” on the next page.

Common Used to set the communication format commonly to all station numbers.
Discrete Used to set a communication format for respective station numbers.
Detail Displays the [Format Detail Display] dialog.
No. Displays the station number of the connected device.
Station Name Sets and displays the station name of the connected device.
Check the box when Modbus TCP/IP communication is to be performed with a device requiring a unit ID
Sub Station specification. When this box is checked, the unit ID can be specified when setting the device memory address.
(Without check: The unit ID is fixed to “FFH”.)
30.1 PLC Connection 30-11

[Format Detail Display] dialog

Register the communication format for each of the specified address range. Make the setting according to the device
specification.

Four types of communication formats shown


to the left have been registered by default.

Station Name Register a desired station name.


Target Port No. When [Discrete] is selected, the number of the selected station is automatically displayed.
Select the address notation.
HEX/DEC
HEX / DEC
Displays the currently registered device memory name.
Device
Coil / Input Relay / Holding Register / Input Register (default settings: one each, deletion impossible)
Specify the address range for each device memory.
HEX: 0000 to FFFF
Address DEC: 1 to 65536
* The address range must not be duplicated.

Read Command Set the communication format used for reading from or writing into the specified address range.
 [Read Command] / [Write Command]
Maximum Read Value Specify the function code*1 to use for Modbus communication.
The available function codes vary depending on the device. Refer to the instruction manual of the connected
device as well as the table shown below*1, and set the options on the dialog correctly.
Write Command
 [Maximum Read Value] / [Maximum Write Value]
Maximum Write Value Set the maximum value to be read or written at one time. Make the setting according to the device
specification.
For details on the maximum value that can be set for each device memory by using V-SFT, see the table shown
below.*1
Specify the ordering of data.
Order of the data
Little Endian / Big Endian
Sub Station Check this box when using the sub station function.
Displays the number of currently registered formats.
Number of the
Default: 4 (deletion impossible)
registered format
Max.: 255

*1 Device memory setting on V-SFT and function code for the Modbus communication

V-SFT Format Setting Modbus Communication


Operation Max. Read/Write Value Function Code
Read 2000 bits 01H
Coil 1 bit 1 bit 05H
Write
2 bits or more 800 bits 0FH
Input Relay Read 2000 bits 02H
Read 125 words 03H
Holding Register 1 word 1 word 06H
Write
2 words or more 100 words 10H
Input Register Read 125 words 04H
30-12 30. MODBUS

Adding a format
To add a format, select a device memory, right-click on the selected device memory and select [Add].

Add
Right click

Example

When connecting a device which has the following specifications to station number 1:

Max.
Function Code Operation Communication Available Address Example
Points
HEX: 0000 to 00FF DEC: 1 to 256 (1)
01H Read coil 4000
HEX: 2EE0 to 4E1F DEC: 12001 to 20000 (2)
05H Write single coil 1 HEX: 0000 to 00FF DEC: 1 to 256 (1)
0FH Write multiple coils 1000 HEX: 2EE0 to 4E1F DEC: 12001 to 20000 (2)
HEX: 0000 to 103F DEC: 1 to 8000 (3)
03H Read holding register 200
HEX: 2EE0 to 2FDF DEC: 12001 to 12256 (4)
06H Write single holding register 1 HEX: 2EE0 to 2FDF DEC: 12001 to 12256 (4)
Write multiple holding
10H 50 HEX: 0000 to 1F3F DEC: 1 to 8000 (3)
registers

 Read/write coil
(1) 0000 to 00FF (HEX)
- Register “01H” (function code for reading) to [Read Command] or “05H” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 4000. Accordingly, register “2000 bits” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 1. Accordingly, register “1 bit” for [Maximum
Write Value] on V-SFT.

(2) 2EE0 to 4E1F (HEX)


- Register “01H” (function code for reading) to [Read Command] or “0FH” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 4000. Accordingly, register “2000 bits” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 1000. Accordingly, register “800 bits” for
[Maximum Write Value] on V-SFT.

 Read/write holding register


(3) 0000 to 1F3F (HEX)
- Register “03H” (function code for reading) to [Read Command] or “10H” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 200. Accordingly, register “125 words” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 50. Accordingly, register “50 words” for
[Maximum Write Value] on V-SFT.

(4) 2EE0 to 2FDF (HEX)


- Register “03H” (function code for reading) to [Read Command] or “06H” (function code for writing) to [Write
Command].
- The maximum number of communication points to be read is 200. Accordingly, register “125 words” for
[Maximum Read Value] on V-SFT.
- The maximum number of communication points to be written is 1. Accordingly, register “1 word” for [Maximum
Write Value] on V-SFT.
30.1 PLC Connection 30-13

(1) Access will not be made to any addresses other


(2) than those not registered on the dialog shown on
(3) the left.
(4)  Coil: 0100 to 2EDF, 4E20 to FFFF
 Holding register: 1040 to 2EDF, 2FE0 to FFFF

PLC
Make communication settings of the connected device according to the settings made for the TSi. For more information on
settings, refer to the instruction manual issued by the manufacturer.

Available Device Memory

The contents of “Available Device Memory” are the same as those described in “30.1.4 MODBUS TCP/IP (Ethernet)”.
30-14 30. MODBUS

30.1.6 MODBUS TCP/IP (Ethernet) Sub Station

 Modbus TCP/IP (Ethernet) communication with devices which require unit ID specifications
- [Connection Mode]: “1 : n”
192.168.1.1

TSi

Ethernet

PLC table PLC table PLC table


No. 0 No. 1 No. 2

192.168.1.11 192.168.1.12 192.168.1.13


Unit ID: 1 Unit ID: 1 Unit ID: 1

 Serial communication with Modbus devices via relay station


- [Connection Mode]: “1 : 1”
192.168.1.1

TSi

Ethernet

PLC table
Relay
No. 0 Serial communication
station

Target Target Target


192.168.1.10
station station station
Target station No. 1
No. 2 No. 3 No. 255
(=Unit ID: 1)
(=Unit ID: 2) (=Unit ID: 3) (=Unit ID: 255)

Communication Setting

Editor
Make the following settings on the editor. For more information, see “1.3.2 Ethernet Communication (TS1100Si/TS1070Si
Only)”.
 IP address for the TSi unit
 Port number for the TSi unit at [Communication Setting] in the [PLC Properties] window ([Hardware Setting])
 PLC’s IP address and port number for [PLC Table] under [Target Settings] in the [PLC Properties] window ([Hardware
Setting])
 [Format Setting] in the [PLC Properties] window ([Hardware Setting])

Modbus format setting


Make communication format settings for each connected device. (See page 30-2.)

PLC
Make communication settings of the connected device according to the settings made for the TSi. For more information on
settings, refer to the instruction manual issued by the manufacturer.

Available Device Memory

The available setting range of device memory varies depending on the PLC model. Be sure to set within the range available for
the PLC to be used. Use [TYPE] when assigning indirect device memory for macro programs.

Device Memory TYPE Remarks


0 (output coil) 00H
1 (input relay) 01H
4 (holding register) 02H
3 (input register) 03H
30.1 PLC Connection 30-15

Notes on Creating Screen Programs


 On the editor, the device memory address is specified in decimal notation. Thus, when the address of a connected device
is expressed in hexadecimal notation, convert the address into decimal one and add “1”. (See page 30-3.)
 Set the unit ID when specifying the device memory address.
- [Connection Mode]: “1 : 1”

- [Connection Mode]: “1 : n”

For [Port No.], specify the number on


[PLC Table].
30-16 30. MODBUS

30.1.7 Wiring Diagrams

When Connected at COM1:

RS-422/RS-485

Wiring diagram 1 - COM1

COM1 Name
Dsub 9 (Male)
Name No.

Send data +
+RD 1
6 1
-RD 2 Send data 

9 5
-SD 3 Receive data 

+SD 4 Receive data +

SG 5 SG
* DIPSW No. 2, 3: OFF * Use shielded twist-pair cables.

Wiring diagram 2 - COM1

COM1 Name
Dsub 9 (Male)
Name No.

+RD 1 +
6 1 -RD 2 -
9 5
-SD 3

+SD 4

SG 5 SG
* DIPSW No. 2, 3: ON * Use shielded twist-pair cables.

When Connected at COM2:

RS-232C

Wiring diagram 1 - COM2

COM2
Dsub 9 (Female)
Name No. Name

RD 2 Send data

5
9
SD 3 Receive data
6 1
SG 5 SG

RS 7
* Use shielded twist-pair cables.

CS 8
30.1 PLC Connection 30-17

When Connected at COM3:

RS-485

Wiring diagram 1 - COM3

COM3 Name
Dsub 9 (Female)
Name No.

9 5 -SD/RD 1 +

6 1 +SD/RD 6 -

SG 9 SG

* Use shielded twist-pair cables.

You might also like