Appendix 9.7 when sending data using user frames, Melsec-q, 1) program conditions – MITSUBISHI ELECTRIC QJ71C24N User Manual

Page 337

Advertising
background image

App. - 43 App. - 43

MELSEC-Q

APPENDIX

Appendix 9.7 When sending data using user frames

The following program example sends data by the user frames using the

REMFR/REMTO instruction and I/O signals.

Refer to Section 11.4 of the User's Manual (Application) for the transmission using the

user frames.

(1) Program conditions

The following program sends data using the user frames from the CH1 side when

the transmission signal (X1026) turns ON.
(a) Devices used

:

• Transmission command ......................................................... X1026

• Transmission command pulse signal..................................... M10

• Transmission user frame designation command................... M11

• Transmission result acquisition command............................. M12

• Completion device for REMFR/REMTO instruction .............. M100 to 105

• Normal/abnormal completion flag for REMFR/REMTO

instruction................................................................................ M200 to 203

• Normal/abnormal completion of transmission........................ M300, M301

• Transmission data count ........................................................ D0

• Transmission data................................................................... D1, D2

• CR/LF output designation....................................................... D5

• Output head pointer designation ............................................ D6

• Output count designation........................................................ D7

• Output frame No. designation ................................................ D8 to D12

• Data transmission result ......................................................... D20

(b) Intelligent function module switch settings (Refer to Section 4.5.2)

Bit

Switch No.

Position

Designated value

Description

Setting

value

b0

OFF

Operation setting

Independent

b1

ON

Data bit

8 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

Transmission

setting

Setting modifications

Enabled

Switch 1

b8 to b15

Communication rate setting

19200bps

07C2

H

Switch 2

Communication protocol setting

Non-procedure protocol

0006

H

Switch 5

Station number setting

Station 0

0000

H

Advertising
This manual is related to the following products: