EasyManuals Logo

Siemens Simatic S7 Series System Manual

Siemens Simatic S7 Series
726 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 #204 background imageLoading...
Page #204 background image
Program instructions
7.5 Convert
S7-200 SMART
204 System Manual, 09/2015, A5E03822230-AC
The following figure shows examples of values that are formatted using a decimal point (c=0)
with three digits to the right of the decimal point (nnn=011).
FMT operand for the integer to ASCII (ITA) instruction
Double integer to ASCII
LAD / FBD
STL
Description
DTA IN, OUT, FMT
The
Double Integer to ASCII
instruction converts a double word IN to an array of
ASCII characters. The format parameter FMT specifies the conversion precision
to the right of the decimal. The resulting conversion is placed in 12 consecutive
bytes beginning with OUT.
Non-fatal error conditions with ENO = 0
SM bits affected
0006H Invalid indirect address
0091H Operand out of range
FMT bit is not zero for 4 most signif-
icant bits, of the FMT byte
nnn > 5
None
Input / output
Data type
Operand
IN
DINT
ID, QD, VD, MD, SMD, SD, LD, AC, HC, *VD, *LD, *AC, Constant
FMT
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
OUT
BYTE
IB, QB, VB, MB, SMB, SB, LB, *VD, *LD, *AC
The size of the output buffer is always 12 bytes. The number of digits to the right of the
decimal point in the output buffer is assigned by the nnn field. The valid range of the nnn
field is 0 to 5. If you assign 0 digits to the right of the decimal point, then the value is
converted with no decimal point. For values of nnn bigger than 5, the output buffer is filled
with ASCII spaces. The c bit specifies the use of either a comma (c=1) or a decimal point
(c=0) as the separator between whole number and fraction. The most significant 4 bits must
always be zero.

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals