EasyManuals Logo

Mitsubishi FX3U-232-BD User Manual

Mitsubishi FX3U-232-BD
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #474 background imageLoading...
Page #474 background image
F-36
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
6 Creating Programs (RS Instruction)
6.2 How to Use RS Instruction
6.2.3 Send/receive data and amount of data
RS instruction can handle sent and received data in two modes, 16-bit mode and 8-bit mode.
Data is handled as shown below in each mode. (In the examples shown below, "header provided" and
"terminator provided" are selected in the communication setting.)
1. Handling of 16-bit data (when M8161 is set to OFF)
1) Send data and amount of remaining send data
2) Receive data and amount of data already received
Caution on other instructions using M8161
M8161 is shared by RS, ASCI, HEX, CCD, and CRC (provided only in FX
3U and FX3UC PLCs) instructions.
X010
M8000
FNC 80
RS
D200 K 4 D500 K 10
S
îš‚
m
D
îš‚
n
M8161
16-bit mode
OFF in RUN mode
OFF
Highest-order 8-bit Lowest-order 8-bit
16-bit data
16-bit data is divided into lowest-order
8-bit and highest-order 8-bit when it is
sent or received.
D200 highest-
order byte
STX
D200 lowest-
order byte
D201 lowest-
order byte
D201 highest-
order byte
ETX
STX
D500 lowest-
order byte
D500 highest-
order byte
D501 lowest-
order byte
D501 highest-
order byte
D502 lowest-
order byte
D502 highest-
order byte
ETX
Terminator
They cannot exceed the upper limit number of devices (bytes) to be
received by "n". When the PLC receives the terminator (ETX) or "n" data,
receivin
g
is com
p
leted.
Terminator
Header
Header
Send data
(PLC
→
external
equipment)
Receive data
(external
equipment
→
PLC)
Head address specified by
S
îš‚
Number of bytes to be sent specified by "m"
Head address specified by
D
îš‚
0
1
2
3
4
Amount of remaining
send data
D8122
Send data
SD (TXD)
D200
lowest-order byte
D200
highest-order byte
D201
lowest-order byte
D201
highest-order byte
STX
ETX
When the receiving
complete flag M8123
is reset, the amount of
received data is reset
also.
6
5
4
3
2
1
0
Receive data
RD (RXD)
Amount of data
already received
D8123
D500
lowest-order byte
D500
highest-order byte
D501
lowest-order byte
D501
highest-order byte
D502
lowest-order byte
D502
highest-order byte
STX
ETX

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX3U-232-BD and is the answer not in the manual?

Mitsubishi FX3U-232-BD Specifications

General IconGeneral
BrandMitsubishi
ModelFX3U-232-BD
CategoryController
LanguageEnglish

Related product manuals