Appendix 9.4 When Receiving Data Using Nonprocedural Or Bidirectional Protocol - Mitsubishi QJ71C24N User Manual

Melsec-q series
Hide thumbs Also See for QJ71C24N:
Table of Contents

Advertisement

APPENDIXES

Appendix 9.4 When receiving data using nonprocedural or bidirectional protocol

Switch No.
Switch 1
Switch 2
Switch 5
Address Decimal (Hexadecimal)
150 (96
164 (A4
165 (A5
166 (A6
167 (A7
600 (258
App. - 42
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)
Bit
Position
Designated value
b0
OFF
b1
OFF
b2
OFF
b3
OFF
b4
OFF
b5
OFF
b6
ON
b7
ON
b8 to b15
(c) Buffer memory settings used in this example
CH1
)
Word/byte units designation
H
)
Received data count designation
H
)
Receive complete code designation
H
)
Receive buffer memory head address designation
H
)
Receive buffer memory length designation
H
)
Data reception result
H
:
Description
Operation setting
Data bit
Parity bit
Transmission
Even/odd parity
setting
Stop bit
Sum check code
Write during RUN
Setting modifications
Communication rate setting
Communication protocol setting
Station number setting
Name
MELSEC-Q
Independent
7 bits
No
Odd
1 bit
No
Enabled
Enabled
19200bps
Non-procedure protocol
Station 0
Word units
App. - 42
Setting
value
07C0
H
0006
H
0000
H
Setting
value
01FF
H
0D0A
H
0600
H
0200
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71c24n-r2Qj71c24n-r4Qj71c24Qj71c24-r2

Table of Contents