Appendix 9.5 When Sending 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.5 When sending data using nonprocedural or bidirectional protocol

Switch No.
Switch 1
Switch 2
Switch 5
Address Decimal (Hexadecimal)
150 (96
162 (A2
163 (A3
599 (257
App. - 44
The following program example sends data under the nonprocedural protocol (or
bidirectional protocol) using the REMFR/REMTO instruction and I/O signals.
Refer to Chapter 6 for the communication using the nonprocedural protocol, and to
Chapter 7 for the communication using the bidirectional protocol.
(1) Program conditions
The following program sends data from the CH1 side when the transmission
signal (X1024) turns ON.
(a) Devices used
• Transmission command ......................................................... X1024
• Transmission command pulse signal ..................................... M10
• Transmission result acquisition command ............................. M11
• Completion device for REMFR/REMTO instruction ............... M100 to 103
• Normal/abnormal completion flag for REMFR/REMTO
instruction................................................................................ M200 to 202
• Normal/abnormal completion of transmission........................ M300, M301
• Transmission data count......................................................... D10
• Transmission data (5 words) .................................................. D11 to D15
• Data transmission result ......................................................... D20
(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
)
Transmission buffer memory head address designation
H
)
Transmission buffer memory length designation
H
)
Data transmission 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
or
bidirectional protocol
Station 0
Word units
App. - 44
Setting
value
07C0
H
0006
H
or
0007
H
0000
H
Setting
value
0400
H
0200
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71c24n-r2Qj71c24n-r4Qj71c24Qj71c24-r2

Table of Contents