10. Creating Programs; Checking Contents Of Related Devices; Creating Programs For The Master Station - Mitsubishi FX3U Series User Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
Series Programmable Controllers
3U
User's Manual - MODBUS Serial Communication Edition

10. Creating Programs

This chapter explains how to setup FX MODBUS Serial Communication and how to create programs for the
Master and Slave stations.
10.1

Checking Contents of Related Devices

For a full description of the PLC devices used by FX MODBUS Serial Communication, please refer to Chapter
6 of this manual.
10.2

Creating Programs for the Master Station

Programs allowing the master station to read and write slave station devices can be created similar to the
example below.
MODBUS Serial
Communication Setup
M8411
0
Read Coils from Slave 0x02
M0
ADPRW
Command Complete Flag
M8029
H1097
MOV
H1
MOV
K2000
MOV
K400
MOV
K10
MOV
K3
MOV
H101
MOV
K100
MOV
H2
H1
K100
K8
RST
10.1 Checking Contents of Related Devices
Program for setting up a MODBUS Master
For more details on the Communication Setup
D8400
Parameters, refer to Section 5.2 of this manual.
D8401
D8409
D8410
D8411
D8412
D8415
D8416
Program for Reading Coils
Slave Address: 0x02
D0
Command Code: 0x01
MODBUS Address: 100
Device Count: 8
Destination Device Head: D0
8 coil device values starting at MODBUS
Address 100 of Slave 2 are read to the first 8
M0
bits in D0 of the Master.
10 Creating Programs
1
2
3
4
5
6
7
8
9
10
97

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents