Fixnumtostring - Omron NY532-5400 Reference Manual

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

Advertisement

FixNumToString

The FixNumToString instruction converts a signed fixed-decimal number to a decimal text string.
Instruction
FixNumToString
Fixed-decimal
Number-to-Text
String Conversion
Variables
Name
Meaning
In
Fixed-
decimal
number
Zero
Zero
augmenta-
tion
Out
Decimal
text string
Bit strings
In
Zero
OK
Out
Function
The FixNumToString instruction converts signed fixed-decimal number In to a decimal text string. The
following conversion is used.
1
The hexadecimal number In is converted to a decimal number.
2
The result is divided by 1,000.
Zero augmentation Zero specifies whether to add '0' to the third decimal place of Out when there are
less than three decimal digits in In. If the value of Zero is TRUE, '0' is added. A NULL character is
placed at the end of Out.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Signed fixed-decimal
number
Augmentation of zeros if
Input
there are less than 3
decimal digits
TRUE: Add '0'
FALSE: Do not add '0'
Output
Decimal text string
OK
Graphic expression
(@)FixNumToString
EN
ENO
In
Zero
Valid range
Depends on data type.
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=FixNumToString(In,
Zero);
Out
Unit
Default
0
TRUE
---
---
---
Times, durations,
dates, and text strings
2
OK
2-451

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents