![Mitsubishi Electric GX Configurator-SC Скачать руководство пользователя страница 415](http://html.mh-extra.com/html/mitsubishi-electric/gx-configurator-sc/gx-configurator-sc_user-manual_239043415.webp)
App. - 42 App. - 42
MELSEC-Q
APPENDICES
Appendix 9.4 When receiving data using nonprocedural or bidirectional protocol
The following program example receives data under the nonprocedural protocol (or
bidirectional protocol) using the REMFR instruction and I/O signals.
Refer to Chapter 6 for the communication using the nonprocedural protocol.
Refer to Chapter 7 for the communication using the bidirectional protocol.
Refer to the User's Manual (Application) for data communication using the user frames.
(1) Program
conditions
The following program receives data from the external device by communication
using the nonprocedural protocol, then turns ON the reception data request
(X1003), and reads the received data from the QJ71C24N buffer memory to the
programmable controller CPU.
(a) Devices
used
:
• Error code read signal ........................................................... X1023
• Receive read request signal ................................................. M10
• Received data acquisition command .................................... M11
• Receive result acquisition command .................................... M12
• Completion device for REMFR instruction ........................... M100 to 105
• Normal/abnormal completion flag for REMFR instruction ... M200 to 203
• Normal/abnormal completion of receive ............................... M300, M301
• Received data count ............................................................. D0
• Received data (when 5-word data are received) ................. D1 to D5
• Data reception result ............................................................. D8000
(b) Intelligent function module switch settings (Refer to Section 4.5.2.)
Switch No.
Bit
Description
Setting
value
Position Designated
value
Switch 1
b0 OFF
Transmission
setting
Operation setting
Independent
07C0
H
b1 OFF
Data
bit
7
bits
b2 OFF
Parity
bit
No
b3 OFF
Even/odd
parity
Odd
b4
OFF
Stop bit
1 bit
b5
OFF
Sum check code
No
b6 ON
Write
during
RUN Enabled
b7 ON
Setting
modifications
Enabled
b8 to b15
—
Communication rate setting
19200bps
Switch 2
—
Communication protocol setting
Non-procedure protocol
0006
H
Switch 5
—
Station number setting
Station 0
0000
H
(c) Buffer memory settings used in this example
Address Decimal (Hexadecimal)
Name
Setting
value
CH1
150 (96
H
)
Word/byte units designation
Word units
164 (A4
H
)
Received data count designation
01FF
H
165 (A5
H
)
Receive complete code designation
0D0A
H
166 (A6
H
)
Receive buffer memory head address designation
0600
H
167 (A7
H
)
Receive buffer memory length designation
0200
H
600 (258
H
)
Data reception result
—
Содержание GX Configurator-SC
Страница 2: ......
Страница 103: ...3 42 3 42 MELSEC Q 3 SPECIFICATIONS MEMO ...
Страница 138: ...4 35 4 35 MELSEC Q 4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MEMO ...
Страница 397: ...App 24 App 24 MELSEC Q APPENDICES Connection example 3 Connection example 4 ...
Страница 439: ...WARRANTY ...
Страница 441: ......