EasyManuals Logo

Panasonic FP Series User Manual

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #132 background imageLoading...
Page #132 background image
Conversion instructions
131
Part II IEC Instructions
STRING_TO_WORD
_STEPSAVER
STRING (Hexadecimal Format right-justified) to WORD
Input Defined as Results in
'D' STRING[1] 16#D
'CD' STRING[2] 16#CD
'BCD' STRING[3] 16#BCD
'ABCD' STRING[4] 16#ABCD
'0ABCD' STRING[5] 16#ABCD
'00ABCD' STRING[6] 16#ABCD
The basic instruction F72_A2HEX (see page 624) is used. The PLC delivers an operation error
especially when a character appears that is not a hexadecimal number “0 - 9" or "A-F”.
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
Data type Comment
STRING Input variable
WORD Output variable
Acceptable Format for STRING[4]:
'Hex1Hex2Hex3Hex4' e.g. perhaps 'AFFE'
Acceptable characters:
Hex1 to Hex4 Hexadecimal numbers in the range "0 - 9“ or "A - F“ (not "a - f").
PLC types Availability of STRING_TO_WORD_STEPSAVER (see page 1331)
Description
This function converts the string with the maximum possible number of characters that are right
aligned in hexadecimal format to a value of the data type WORD.
Examples
Example
Data types

Table of Contents

Other manuals for Panasonic FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Panasonic FP Series and is the answer not in the manual?

Panasonic FP Series Specifications

General IconGeneral
MountingDIN rail
TypePLC
Communication InterfaceRS-232, RS-485, Ethernet (depending on model)
Input Voltage100-240V AC or 24V DC (depending on model)
Output TypeRelay, Transistor
I/O PointsVaries by model
Operating Temperature0°C to 55°C
DimensionsVaries by model
WeightVaries by model

Related product manuals