Stringtofixnum - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

StringToFixNum

The StringToFixNum instruction converts a decimal text string to a signed fixed-decimal number.
Instruction
StringToFixNum
Text String-to-
Fixed-decimal
Conversion
Variables
Name
Meaning
In
Decimal text
string
Out
Fixed-decimal
number
Bit strings
In
Out
Function
The StringToFixNum instruction converts decimal text string In to a fixed-decimal number. The following
conversion is used.
1
The number in In is multiplied by 1,000.
2
The fractional part is truncated.
3
The result is given as a 32-bit hexadecimal number (DWORD).
A few examples are given below.
LD
StringToFixNum
EN
abc
In
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Input
Decimal text string
Output
Fixed-decimal number
OK
ST
ENO
def
Graphic expression
(@)StringToFixNum
EN
ENO
In
Valid range
Depends on data type.
Depends on data type.
Integers
def:=StringToFixNum(abc);
2 Instruction Descriptions
ST expression
Out:=StringToFixNum(In);
Out
Unit
Default
---
''
---
---
Times, durations,
dates, and text strings
2
OK
2-453

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents