Panasonic FP Series Programming Manual page 683

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
F252_ACHK
Checks whether the ASCII codes stored in the area specified by s2_AsciiData can be converted
Description
correctly using the conversion method specified in by n_ConversionMethod and the 4 control
characters specified by s1_Control.
If the results are correct, the special internal relay (R900B) turns on.
If the results are incorrect, the special internal relay (R900B) turns off.
For an detailed description of s1_Control and n_ConversionMethod, please refer to F251_ATOB.
Availability of F252_ACHK (see page 1323)
PLC types
Data types
Variable
s1_Control
s2_AsciiData
n_Conversion Method
Operands
For
s1_Control
s2_AsciiData
n_Conversion Method
Error flags
No.
IEC
address
%MX0.900.7
R9007
%MX0.900.8
R9008
682
ASCII data check
Data type
Function
STRING
Control string
16
ANY
Starting area for storing ASCII data
ANY16
16-bit equivalent constant or 16-bit area for storing conversion method
Relay
WX
WY
WR
WL
WX
WY
WR
WL
WX
WY
WR
WL
Set
If
permanently
 there is an error in the control string specified by s1_Control.
 normal direction (+) is specified in s1_Control when the format is
decimal.
 the number of ASCII characters per converted
 unit specified by n_ConversionMethod exceeds 4 for 16-bit data or 8
for 32-bit data when hexadecimal format is specifed by s1_Control.
for an instant
 0 is specified for the no. of 16- or 32-bit (1- or 2-word) units to be
converted in n_ConversionMethod.
 the number of 16- or 32-bit decimal numbers to be converted specified
 by n_ConversionMethod exceeds the area for storing ASCII data.
 the converted result exceeds the area.
D
converts to decimal ASCII data
D:
converts to hexadecimal ASCII data
H:
+
Normal direction
-
Reverse direction
16: converts in 16-bit (1-word) units
32: converts in 32-bit (2-word) units
T/C
Register
SV
EV
DT
LD
-
SV
EV
DT
LD
FL
SV
EV
DT
LD
-
Constant
-
-
dec or hex

Advertisement

Table of Contents
loading

Table of Contents