Справочник Пользователя для Mitsubishi Electronics FXCPU

Скачать
Страница из 838
14 Applied Instructions (External FX I/O Device)
14.8 PR / Print (ASCII Code)
378
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
14.8
PR / Print (ASCII Code)
Outline
This instruction performs parallel output of ASCII code data to the output (Y).
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
Function and operation explanation
1. 16-bit operation (PR)
ASCII code stored in lower 8 bits (1 byte) of 
 to 
+7 is issued to 
 to 
+7 sequentially in time
division character by character.
The following timing chart explains the ASCII code stored in the device specified by 
.
The transmission sequence begins from 
="A", and ends with 
+7="H", and 8 bytes are transmitted in
total.
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Instruction 
name
Operation
Execution 
form
Expression in each language
Structured ladder/FBD
ST
PR
16 bits
Continuous
PR(EN, s, d);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
Head device for storing data of ASCII code.
String
Output
variable
ENO
Execution state
Bit
Head device for output data of ASCII code.
Bit
Operand 
type
Bit Devices
Word Devices
Others
System user
Digit designation
System 
user
Special 
unit
Index
Cons
tant
Real 
Number
Character 
String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modifier K H
E
"
"
P
z z z
S1
z
z
z
+1
+2
+3
+4
+5
+6
+7
A(H41)
B(H42)
C(H43)
D(H44)
E(H45)
F(H46)
G(H47)
H(H48)
PR
EN
s
ENO
d
Command input
PR
EN
s
ENO
d
Head device for storing 
data of ASCII code.
Head device for output 
data of ASCII code.