Conversion instructions
629
Part III FP Instructions
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types Availability of F73_BCD2A (see page 1326)
Variable Data type Function
s1 WORD starting 16-bit area for BCD data (source)
s2 ANY16 specifies number of source data bytes to be converted, and
how it is arranged
d WORD starting 16-bit area for storing converted result (destination)
For Relay T/C Register Constant
s1 WX WY WR WL SV EV DT LD FL -
s2 WX WY WR WL SV EV DT LD FL dec. or hex.
d - WY WR WL SV EV DT LD FL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
Data types
Operands
Error flags
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out. In this example, the variable
direction_number specifies that from the input variable BCDCodeInput, 2 bytes will be converted
in the reverse direction and stored in ASCOutput.
LD