Panasonic FP-XH M8N16PD User Manual page 271

Programmable controller
Table of Contents

Advertisement

 Sample program
• An example for presetting the pulse input value of CH1 to any value K0 is given below. Read
the pulse input value from the 1st line of the program for monitoring.
• Preset the pulse input value in corresponding positioning memory and set the change value
request flag of corresponding channel. After the input value is changed, the change request
flat area (positioning memory area no.0/address H3A9) will be cleared.
R9010
R1
DF
R2
DF
Symbols
Specified content of program
Common area
Area in which pulse input values are
stored
Change value
Common area
Pulse count value change value area
Set value for the pulse count value
change request flag area
Pulse count value change request
flag area
Reading of pulse input value
Write the preset values saved in the pulse input value area into the positioning memory
Write the values to the positioning memory according to the request for pulse input
change
F384 PTBLR
H0
F385 PTBLW
H0
F385 PTBLW
H0
H3C0
K2
F1 DMV
K0
DT100
DT100
K2
F0 MV
H1
DT102
DT102
K1
Specified value of program
CH1
CH2
H0
H3C0
H3C2
Any value
H0
H3B0
H3B2
H1
H2
H3A9
15.1 Pulse Input
DT0
H3B0
H3A9
CH3
CH4
H3C4
H3C6
H3B4
H3B6
H4
H8
15-7

Advertisement

Table of Contents
loading

Table of Contents