Panasonic FP Series Programming Manual page 847

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data transfer within the PLC
 Connection example
Transistor output type
(output: 9 points or more)
In this example the function is programmed in ladder diagram (LD). The same POU header is used
Example
for all programming languages.
The ASCII codes stored in the string PrintOutString are output through word external output relay
WY0 when trigger Start turns on.
Source: ASCII code for 12 characters A, B, C, D, E, F, G, H, I and J
ASCII HEX code
ASCII character
Control data for printer
Destination
YF YE YD YC YB YA Y9 Y8 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
WY0
Y9 to YF: not used
GVL
In the global variable list, you define variables that can be accessed by all POUs in the project.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
846
Printer
(centronics interface)
Y0
DATA1
Y1
DATA2
Y2
DATA3
Y3
DATA4
Y4
DATA5
Y5
DATA6
Y6
DATA7
DATA8
Y7
STROBE
Y8
:
COM
GND
PrintOutString
0D 0A 4A
49
48
47
46
C
LF
J
I
H
G
F
R
ASCII codes
start: ON
Y0 to YF: for data signals of printer
(Y0 to Y7 correspond to DA A1 to DA A8 of printer)
Y8: for strobe signal of printer
45
44
43
42
41
E
D
C
B
A

Advertisement

Table of Contents
loading

Table of Contents