Omron CS1G/H-CPUxx-EV1 Programming Manual page 242

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

File Memory
Item
Converting unsigned decimal to 4-digit
Function
DEC2HEX(cell_location,4)
used
Example
Input 10 in decimal and convert to 000A in 4-digit
hexadecimal.
Item
Converting signed decimal to 4-digit hexadecimal
Function
DEC2HEX(IF(0<=cell_location,cell_location,65536+
used
cell_location),4)
Example
Input -10 in decimal and convert to FFF6 in 4-digit
hexadecimal.
Data Files Transferred
Automatically at Startup
Note
206
• Example 1: Inputting non-negative decimal values.
hexadecimal
• Example 2: Inputting signed decimal values.
<
There are 3 kinds of files that are transferred automatically at startup when
the automatic transfer at startup function is being used.
• AUTOEXEC.IOM or REPLACE.IOM: DM words allocated to Special I/O
Units and Inner Boards.
The contents of this file are transferred to the DM Area beginning at
D20000 when power is turned ON.
• ATEXECDM.IOM or REPLCDM.IOM: General-purpose DM words
The contents of this file are transferred to the DM Area beginning at
D00000 when power is turned ON.
• ATEXECE @ .IOM or REPLCE @ .IOM: General-purpose EM words
The contents of this file are transferred to the EM Area beginning at
E @ _00000 when power is turned ON.
When creating the data files listed above, always specify the first address
shown above (D20000, D00000, or E@_00000) and make sure that the size of
the file does not exceed the capacity of the specified data area.
All of the data in each file will always be transferred starting at the specified
first address (D20000, D00000, or E@_00000).
1. When creating the AUTOEXEC.IOM, ATEXECDM.IOM, and ATEX-
ECE@.IOM files or the REPLACE.IOM, REPLCDM.IOM, or RE-
PLCE@.IOM files from a Programming Device (Programming Console or
CX-Programmer), always specify the proper first address (D20000,
D00000, or E@_00000) and make sure that the size of the file does not ex-
ceed the capacity of the DM Area or specified EM bank. The contents of
the file will always be transferr3ed starting at the proper first address
(D20000, D00000, or E@_00000) even if another starting word is speci-
fied, which could result in the wrong data overwriting the contents of that
part of the DM Area or EM bank. Furthermore, if the capacity of the DM
Area or EM bank is exceeded (as is possible when making settings from
Converting unsigned decimal to 8-digit
hexadecimal
DEC2HEX(cell_location,8)
Input 10 in decimal and convert to 0000000A in
8-digit hexadecimal.
Converting signed decimal to 8-digit hexadecimal
DEC2HEX(IF(0<=cell_location,cell_location,
4294967296+cell_location),8)
Input -10 in decimal and convert to FFFFFFF6 in 8-
digit hexadecimal.
<
Section 5-1

Advertisement

Table of Contents
loading

Table of Contents