Mitsubishi MELSEC Q Series Programming Manual page 561

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Program Example
(1) The following program uses the PR instruction to output the hexadecimal value of the 16-bit
BIN data at W0 in ASCII code to Y40 to Y48.
[Ladder Mode]
[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, The PR instruction will output ASCII code until 00
W0
9C06
H
BIN value
(2) The following program uses the PR instruction to output the hexadecimal value of the 32-bit
BIN data at W10 and W11 to Y40 to Y48.
[Ladder Mode]
[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, The PR instruction will output ASCII code until 00
W11
W10
7 B 3 C 5 8 1 F
b15
b8b7
D0
43
(C)
H
D1
36
(6)
H
00
D2
H
b15
b8b7
D0
42
(B)
H
D1
43
(C)
H
D2
38
(8)
H
H
D3
46
(F)
H
00
D4
BINHA(P),DBINHA(P)
[List Mode]
Step
Instruction
b0
39
(9)
PR
H
30
(0)
H
Outputs "9C06"
[List Mode]
Step
Instruction
b0
37
(7)
H
33
(3)
PR
H
35
(5)
H
31
(1)
Outputs "7B3C581F"
H
H
Device
is encountered.
H
Y40 to Y48
Device
is encountered.
H
Y40 to Y48
7-187
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents