Valid Addressing Modes and File TypesA-2..........................................................
Page 2
Preface
Preface
Read this preface to familiarize yourself with the rest of the manual. This preface
covers the following topics:
•
who should use this manual
•the purpose of this manual
•
terms and abbreviations used
•
conventions used in this manual
P-1
Page 3
APS Import/Export Utility User Manual
Preface
Who Should Use this Manual
Use this manual if you are responsible for designing, installing, programming, or
troubleshooting control systems that use Allen-Bradley small logic controllers.
You should have a basic understanding of SLC 500t products. If you do not,
contact your local Allen-Bradley representative for the proper training before using
this product.
We recommend reviewing the
software.
Purpose of this Manual
This manual is a reference guide for the APS Import/Export utility
procedures you use to convert APS archive files and program documentation into
ASCII text files, and vice versa.
Contents of this Manual
ChapterTitleContents
Preface
1
2
3
4
5
6
Appendix A
Introducing the APS
Import/Export Utility
Configuring the APS
Import/Export Utility
Importing ASCII
Documentation/Archive Files
Exporting APS
Documentation/Archive Files
Creating an ASCII Archive
File
Creating an ASCII
Documentation File
Programming Instruction
References
APS Quick Start for New Users
Describes the purpose, background, and scope of
this manual. Also specifies the audience for whom
this manual is intended.
Introduces you to the APS Import/Export utility and
shows you how to start it.
Guides you through the configuration of the APS
Import/Export utility.
Guides you through the configuration of the import
utility and then the import operation.
Guides you through the configuration of the export
utility and then the export operation.
Explains how to build an ASCII archive file, then
provides examples.
Explains how to build an ASCII documentation file,
then provides an example.
Provides you with valid addressing modes and file
types.
before using the
. It describes the
P-2
Page 4
Related Documentation
The following documents contain additional information concerning RSI and
Allen-Bradley SLC products. To obtain a copy
distributor.
ForRead this Document
An introduction to APS for firsttime users,
containing basic concepts but focusing on simple
tasks and exercises, and allowing the reader to
begin programming in the shortest time possible
A training and quick reference guide to APS
A guide of common procedures used in APS
A procedural manual for technical personnel who
use APS to develop control applications
A reference manual that contains status file data
and instruction set information for the SLC 500
processors and MicroLogix 1000 controllers.
Preface
, contact your local sales of
APS Quick Start for New Users
SLC 500 Software Programmer's Quick
Reference Guide, Publication Number
ABT1747TSG001available on PASSPORT
at a list price of $50.00
SLC 500 Software Common Procedures
Guide, Publication Number
ABT1747TSJ50available on PASSPORT
at a list price of $50.00
Advanced Programming Software (APS)
User Manual
Instruction Set Reference Manual
fice or
An overview of the SLC 500 family of products
A description on how to install and use your Fixed
SLC 500 programmable controller
A description on how to install and use your
Modular SLC 500 programmable controller
A complete listing of current documentation,
including ordering instructions. Also indicates
whether the documents are available on CDROM
or in multilanguages.
A glossary of industrial automation terms and
abbreviations
SLC 500 System Overview, Publication
Number 17472.30
Installation and Operation Manual for Fixed
Hardware Style Programmable Controllers,
Catalog Number 1747NM001
Installation and Operation Manual for
Modular Hardware Style Programmable
Controllers, Publication Number 17476.2
AllenBradley Publication Index, Publication
Number SD499
AllenBradley Industrial Automation Glossary,
Publication Number AG7.1
P-3
Page 5
APS Import/Export Utility User Manual
Preface
Terms and Abbreviations
The following terms and abbreviations are specific to this product. For a complete
listing of Allen-Bradley terminology, refer to the Allen-Bradley Industrial
Automation Glossary
Archive File a file, stored on a disk and in binary format, that contains an SLC
500 processor program.
Documentation File a file, stored on a disk and in binary format, that contains
rung, instruction, address comments and symbols.
APS Advanced Programming Software.
, publication number AG–7.1.
APSIE
ASCII
RSI
SLC
APS Import/Export utility.
a group of alphanumeric characters that defines a line in an import file.
Rockwell Software, Inc.
small logic controller
Common Techniques Used in this Manual
The following conventions are used throughout this manual:
•
Bulleted lists such as this one provide information, not procedural steps.
•Numbered lists provide sequential steps or hierarchical information.
•Italic
•Text in this font
•
type is used for emphasis.
indicates words or phrases you should type.
Key names match the names shown and appear in bold, capital letters within
brackets (for example, [ENTER]). A function key icon matches the name of the
CONFIG
OFFLINE
function key you should press, such as
SAVE &
EXIT
CONFIG
F8
.
P-4
Page 6
Introducing the
APS Import/Export Utility
1
Introducing the APS Import/Export
Utility
This chapter provides:
•an overview of the APSIE utility
•
the system requirements
•the APSIE display format
•the APSIE menu display
This chapter also shows you how to:
•run the software
•start the utility
1-1
Page 7
APS Import/Export Utility User Manual
Preface
APSIE Overview
The APS import/export utility, APSIE, lets you convert:
•APS archive files and program documentation into ASCII text files
•ASCII text files that contain an SLC 500 program and program documentation
into APS archive files
You install APSIE as you install APS, although it executes separately from APS.
APSIE interacts with archive and documentation files generated by all versions of
APS.
Another key feature of APSIE is its
you specify the drives and directories that APSIE reads files from and writes files
to. With this capability you can have files in any MS–DOS directory. For more
information on user directories, see chapter 2, Configuring the APS Import/Export
Utility.
System Requirements
You can use APSIE with an Allen-Bradley T47 or T70 terminal, 386/SX, NEC
VERSAtE Series Notebook, or GATEWAY 2000t models 386DX/25, 386DX/33,
486DX/33, 486DX2/50, and 486DX2/66 personal computers. Your computer must
have:
•
640 Kbytes of RAM
•10 Mbyte fixed-disk drive (APS requires 8.5 Mbytes of free disk space.)
•DOS version 3.3 or higher
The maximum number of archive, documentation, and ASCII files allowed by
APSIE is limited solely by the available space on your floppy or fixed disk.
Define Dir
ectory
function. This function lets
1-2
Page 8
Running the Software
To run the APSIE software, follow these steps:
Introducing the
APS Import/Export Utility
If necessary
1.
, change the drive specifier to the drive where the software is
installed (typically C). To do this, type:
and press
C:
[ENTER].
2.If you are using the default directory, at the DOS prompt, type:
CD \IPDS\ATTACH\SLC500
and press
[ENTER].
If you specified a different directory path, change to that directory and press
[ENTER].
arious windows overlay the display depending on the function you
Error codes/descriptions and information concerning terminal
Mon July 18, 1994
. . . Working . . .
F1F2F3
Data/Cmd entry:
Menu
Functions:
Message:
Prompt:
Status:
APSIE Menu Display
From the APSIE main menu there are three tasks that you can start. You can import
ASCII files, export APS files, or configure the utility
running APSIE, various windows are displayed depending on the function you are
accessing. The function keys also change as the windows change. See table 1.A.
1-4
Prompt line:
Indicates action you should take.
Data/Cmd entry line:
Status line:
Menu functions:
function keys F1 to F10. Pressing a main function key calls up subfunctions or
SELECTOPTIONS
option windows.
F5F7F8F9
Information entered from the keyboard appears on this line.
Status information concerning the program files appears on this line.
APSIE functions appear here. They are accessed by menu
EXPORT
ACH&DOC
EXPORT
ACH
EXPORT
DOC
. As you press keys while
Page 10
Table 1.A
Function Keys — APSIE Menu Display
Press this
main
function:
SYSTEM
CONFIGR
F6
IMPORT
F7
EXPORT
F8
DEFINE
DIR
COLOR
SELECT
F1F3F9
ARCHIVE
DIR
ASCII
DIR
F4F6F7
DEFINE
SELECT
DIR
SOURCE
F1F3F4
ARCHIVE
DIR
ASCII
DIR
F4F6F7
DEFINE
SELECT
DIR
SOURCE
F1F3F4
ANNOTAT
FILES
F1F3F4
ARCHIVE
DIR
ASCII
DIR
F4F6F7
SAVE
CONFIG
ENTER
DESTIN
ENTER
DESTIN
SORT
ORDER
CONFIG
DIR
CONFIG
DIR
CONFIG
DIR
These subfunctions are accessed:
SAVE
CONFIG
F9
SELECT
OPTIONS
SELECT
OPTIONS
KEYWORD
OPTION
IMPORT
SLC&TXT
IMPORT
F5F7F8
YESNO
F8F10
IGN
SLC
ERRORS
ON
COLLISN
F3F5F6
SAVE
CONFIG
F9
EXPORT
ACH&DOC
F5F7F8
YESNO
F8F10
SYMBOLSF5ADDRESS
SAVE
CONFIG
F9
SLC
DEFAULT
KEYWORD
EXPORT
ACH
COMMENT
F6F7F8
Introducing the
IMPORT
TXT
F9
YESNO
F8F10
IGN TXT
ERRORS
EXPORT
DOC
F9
YESNO
F8F10
INSTR
COMMENT
APS Import/Export Utility
[F8]
- YES and [F10] - NO
are only displayed when the
processor definition is in
error, or an overwrite
destination file message is
displayed.
SAVE
CONFIG
F7
F9
[F8]
- YES and [F10] - NO
are only displayed when an
overwrite destination file
message is displayed.
RUNG
COMMENT
TOGGLE
ENTRY
F1F2F3
SAVE
CONFIG
ALL
YES
SELECT
TYPES
F9
F10
ALL
NO
1-5
Page 11
APS Import/Export Utility User Manual
Preface
Starting the Utility
Select a task to perform from table 1.B.
Table 1.B
Selecting a Task from the Main Menu
If you want to:Press:Then:
configure the
import/export utility
import a file[F7] - IMPORT
export a file[F8] - EXPORT
exit the utility[F10] - EXIT SYSTEM
[F6] - SYSTEM CONFIGR
see chapter 2, Configuring the APS
Import/Export Utility.
see chapter 3, Importing ASCII
Documentation/Archive Files.
see chapter 4, Exporting APS
Documentation/Archive Files.
APSIE software is terminated, the screen
clears, and you are returned to DOS.
1-6
Page 12
Configuring the
APS Import/Export Utility
2
Configuring the APS Import/Export
Software
This
chapter shows you how to:
•
choose between color and monochrome screens. (Y
adaptor card and color monitor to use the color selection.)
•specify the user drives and directories
This chapter assumes that you have installed the APS/APSIE software and selected
the [F6] – SYSTEM CONFIGR function key from the main menu. If not, see
chapter 1, Introducing the APS Import/Export Utility.
ou must have a color
2-1
Page 13
APS Import/Export Utility User Manual
Preface
Configuring the System
After selecting [F6] – SYSTEM CONFIGR, the import/export utility displays the
system configuration screen.
All Rights Reserved
F1 Define Directories
F3 Color SelectionMonochrome
F9 Save Configuration
ESC exits/ALT–U aborts changes
From this menu you can do the following:
•choose color or monochrome screens
•define user directories
•save the configuration
Table 2.A explains what to do for either task.
2-2
Page 14
Configuring the
APS Import/Export Utility
Table 2.A
Specifying User Directories or Choosing between Color and
Monochrome Screens
If you want to:Press:Then:
specify the user directories
choose between color or
monochrome displays
save the configuration
permanently
➀
You must have a color adaptor card and color monitor to use the color selection.
➁
Indicates the user preference default.
[F1] - DEFINE DIR
➀
[F3] - COLOR SELECT
[F9] - SAVE CONFIG
see the following section, Specifying the
User Directories.
toggle between COLOR and
MONOCHROME
➁
SAVE CONFIG or
your choice.
APSIE saves the configuration to the
user preference file.
, then press [F9] -
[ESC] after making
2-3
Page 15
APS Import/Export Utility User Manual
Preface
Specifying the User Directories
Below is the user directories screen. The directory paths shown are the default
directories when the import/export utility is first run. The maximum number of
characters in the pathname is 65. If there are more characters in the pathname than
can fit in the window
periods (...), for example:
“C:\THIS\IS\A\LONG\PATHNAME\FOR\THE\WINDOW...”
, the last 3 characters of the pathname are displayed as three
F4 APS Archive, Comments and Symbols:C:\IPDS\ARCH\SLC500
APS ARCHIVE, COMMENTS and SYMBOLS
\ipds\arch\slc500\this\is\a\valid\path
ESC exits/ALT–U aborts changes
F1 Define DirectoriesF3 Color SelectionMonochromeF9 Save Configuration
ESC exits/ALT–U aborts changes
9323 – PA2E
All Rights Reserved
[ OVERWRITE ]
2-5
Page 17
APS Import/Export Utility User Manual
Preface
2.Enter the directory pathname. Press [INSERT] to toggle between overwrite
and insert modes.
Overwrite mode – writes over and destroys text that may already exist.
Insert mode – writes new text without destroying the already existing text.
3.Press either:
[ENTER] or [ESC] – to save the drive and directory pathname and return to
the previous display
OR
[ALT–U] – to discard any changes that were made and return to the previous
display.
.
After you press [ENTER], [ESC] or [ALT–U]
, the user directories screen is
displayed. If you want to enter another user directory, return to the start of this
section. If you want to save your configuration, press [F9].
2-6
Page 18
Importing
ASCII Documentation/Archive Files
3
Importing ASCII Documentation/
Archive Files
This
chapter describes how to:
•configure the import utility
•import ASCII files
•examine the results of the import
At this point we assume that you have installed the APS/APSIE software and
selected [F7] – IMPORT from the main menu. If not see chapter 1, Introducing the
APS Import/Export Utility.
3-1
Page 19
APS Import/Export Utility User Manual
Preface
Configuring the Import Utility
After selecting [F7] – IMPORT from the main menu, the import screen is displayed.
SLC–500 APS IMPORT/EXPORT UTILITY
DIR Window:
Contains the names
of all the ASCII
source files that exist
in the specified
directory.
Import Files
Window:
Contains the names
of the ASCII
source file and the
APS destination
file selected.
C:\IPDS\TEXT\SLC500
File Names
EXAMPLE1
EXAMPLE2
EXAMPLE3
EXAMPLE4
EXAMPLE5
SLC
Exists
➀
SLC
SLC
IMPORT FILES
SOURCE: EXAMPLE1
DESTIN: ABC
ESC exits
Press a Function Key or Enter File Name
➀
In
the DIR window
, notice the abbreviated words SLC" and TXT": SLC indicates that an ASCII archive file exists;
Rockwell Software Incorporated, Copyright 1989–19
This software is licensed to:ALL
9323 – PA2E
All Rights Reserved
NOTNOW
TXT indicates that an ASCII program documentation file exists for a particular filename. (The absence of one or the
other means that it does not exist.)
Select an import task to perform from table 3.A.
TXT
➀
TXT
TXT
TXT
3-2
Page 20
Importing
ASCII Documentation/Archive Files
Table 3.A
Selecting an Import Task to Perform
If you want to:Press:Then:
define a directory[F1] - DEFINE DIR
use as the import SOURCE
file the name of the file that
the cursor is on
enter the name of the import
destination file
change the various options
that control how the import
process works
import ASCII archive and
documentation files
[F3] - SELECT
SOURCE
[F4] - ENTER DESTIN
[F5] - SELECT
OPTIONS
[F7] - IMPORT SLC &
TXT
import an ASCII archive file[F8] - IMPORT SLCsee the section, Importing ASCII Files.
import an ASCII
documentation file
discard any changes that
were made
[F9] - IMPORT TXTsee the section, Importing ASCII Files.
the [ESC] key
see chapter 2, Configuring the APS
Import/Export Utility.
APSIE places the filename on the
SOURCE line.
enter the destination file name
or with DESTIN blank, press
[ENTER]
to use the same file name as SOURCE.
see the next section, Selecting Options.
see the section, Importing ASCII Files.
APSIE discards any changes that were
made and returns the previous display.
3-3
Page 21
APS Import/Export Utility User Manual
Preface
Selecting Import Options
After selecting [F5] – SELECT OPTIONS from the main import menu, the
import/export utility displays the Import Options window.
SLC–500 APS IMPORT/EXPORT UTILITY
IMPORT
SOURCE
DESTIN:
ESC e
Press a Function Key
Rockwell Software Incorporated, Copyright 1989–19
IMPORT OPTIONS
ASCII ARCHIVE FILE OPTIONS
F3 Ignore SLC Archive ErrorsNO
ASCII PROGRAM DOCUMENTATION FILE OPTIONS
F5 On CollisionsDISCARD
F6 Default KeywordSYMBOL
F7 Ignore TXT Documentation ErrorsYES
F9 Save Configuration
ESC exits/ALT–U aborts changes
All Rights Reserved
C:\IPDS\TEXT\SLC500
9323 – PA2E
File Names
Exists
TXT
TXT
TXT
TXT
This screen offers you options for configuring the import of both ASCII archive and
documentation files. The function keys for this screen, with the exception of [F9] –
SAVE CONFIG, toggle through all the possible values for a given option.
For example, the “Ignore TXT Documentation Errors” option: Function key [F7] –
IGN TXT ERRORS toggles between the values “yes” and “no”, which are the only
possible values for this option.
NoteAPSIE can import online edit INSERT, REPLACE, and DELETE rungs. You can
only cr
eate these rungs with an SLC 5/03 or SLC 5/04 pr
on the use of these rungs, see the Advanced Programming Softwar
ocessor
. For mor
e details
e User Manual.
3-4
Select import options from table 3.B.
Page 22
Importing
[F3]
[F3] - IGN SLC
choosethekeywordthatthe
[F6]
[F6] - DEFAULT
documentation file without a
[F7]
[F7] - IGN TXT
Table 3.B
Selecting Import Options
If you want to:Toggle:Until the status is:
ignore any errors detected
during the archive import
process
abort the archive import
process when any errors
are detected
ignore any duplicate or
conflicting entries in the
imported ASCII
documentation file
overwrite any duplicate or
conflicting entries in the
imported ASCII
documentation file
choose the keyword that the
import utility will use for any
line in the ASCII
➂
keyword
ignore any errors detected
during the documentation
import process
abort the documentation
import process when any
errors are detected.
If you want to:Press:Then:
save the configuration
permanently
use this configuration for the
session only
discard any changes that
were made
➀
Indicates
➁
➂
the user preference default.
Y
ou can choose only one of the four keywords as the default keyword.
This only applies if you are not using keywords to group similar statements.
- IGN SLC
ERRORS
[F5] - ON COLLISION
- DEFAULT
KEYWORD
- IGN TXT
ERRORS
[F9] - SAVE CONFIG
[ENTER] or [ESC]
[ALT–U]
ASCII Documentation/Archive Files
YES
➀
NO
DISCARD
➀
OVERWRITE
SYMBOL
ADDR. COMMENTS
INSTR. COMMENTS
RUNG COMMENTS
➀➁
➁
➁
➁
YES
➀
NO
APSIE saves the configuration to the
user preference file.
APSIE accepts any changes that were
made. Once APSIE is terminated, the
changes are discarded.
APSIE discards any changes that were
made and returns the previous display.
BEGIN ASCII ARCHIVE IMPORT
ASCII ARCHIVE FILE OPTIONS:
IGNORE SLC ARCHIVE ERRORS:NO
PASS 1
ocessor type
e
•abort
The information in the bottom window of the import status area provides the same
information that is stored in a log file. When the import is complete, you have the
option of viewing the log file or returning to the previous screen.
NoteYou
the newly cr
editor.
the import by pr
cannot download the pr
eated APS archive file into APS and then save the file from the offline
essing
[Control – C]
ogram to a pr
ocessor immediately
. Y
ou must first load
3-7
Page 25
APS Import/Export Utility User Manual
Preface
Examining the Results of the Import
The log file provides the results of the import. It lists any errors that the utility
encountered during the import process. For each error, it identifies the type of error
and the location where the error was encountered in the ASCII file. “Illegal
Addresses” and “Illegal Comments” are two examples of errors that you may
encounter.
The default location for the log file is \IPDS\TEXT\SLC500. The log filename
consists of the APSIE archive path, which you defined while configuring the import
utility using [F6] ASCII DIR, the destination file name which you defined in
the import utility using [F4] ENTER DESTIN, and the file extension .LOG.
APSIE also allows you to verify that a new archive file was created. The default
location for the archive file is \IPDS\ARCH\SLC500. The archive filename consists
of the destination filename and the file extension .ACH.
3-8
Page 26
Exporting
APS Documentation/Archive Files
4
Exporting APS Documentation/
Archive Files
This
chapter shows you how to:
•configure the export utility
•export APS files
•examine the results of the export
At this point we assume that you have installed the APS/APSIE software and
selected [F8] – EXPORT from the main menu. If not, see chapter 1, Introducing the
APS Import/Export Utility.
4-1
Page 27
APS Import/Export Utility User Manual
Preface
Configuring the Export Utility
After selecting [F8] – EXPORT from the main menu, the import/export utility
displays the main export screen.
SLC–500 APS IMPORT/EXPORT UTILITY
DIR Window:
Contains the
names of all the
APS source files
that exist in the specified
directory.
Export Files
Window:
Contains the
names of the APS
source file and the
ASCII destination
file selected.
EXPORT FILES
SOURCE: EXAMPLE1
DESTIN: ABC
ESC exits
Press a Function Key or Enter File Name
➀
In
the DIR window
, notice the abbreviated words ACH" and DOC": ACH indicates that an APS archive file exists;
Rockwell Software, Inc.
This software is licensed
to:
ALL
NOTNOW
9323 – PA
All Rights
EXAMPLE1
EXAMPLE2
EXAMPLE3
EXAMPLE4
EXAMPLE5
C:\IPDS\ARCH\SLC500
File Names
ACH
Exists
➀
ACH
ACH
DOC indicates that an APS program documentation file exists for a particular filename. (The absence of one or the
other means that it does not exist.)
Select an export task to perform from table 4.A.
DOC
➀
DOC
DOC
DOC
4-2
Page 28
Exporting
APS Documentation/Archive Files
Table 4.A
Selecting an Export Task to Perform
If you want to:Press:Then:
define a directory
use as the export SOURCE
file the name of the file that
the cursor is on
[F1] - DEFINE DIR
[F3] - SELECT
SOURCE
enter the name of the export
destination file
change the various options
that control how the export
process works
export APS archive and
documentation files
[F4] - ENTER DESTIN
[F5] - SELECT
OPTIONS
[F7] - EXPORT ACH &
DOC
export an APS archive file[F8] - EXPORT ACHsee the section, Exporting APS Files.
export an APS
documentation file
[F9] - EXPORT DOCsee the section, Exporting APS Files.
discard any changes made
during the session
[ESC]
see Chapter 2, Configuring the User
Directory.
APSIE places the filename on the
SOURCE line.
enter the destination file name
or with DESTIN blank, press
[ENTER]
to use the same file name as SOURCE.
see the next section, Selecting Options.
see the section, Exporting APS Files.
any changes made during the session
are discarded and the previous display is
returned.
4-3
Page 29
APS Import/Export Utility User Manual
Preface
Selecting Export Options
After selecting [F5] – SELECT OPTIONS from the main export menu, the
import/export utility displays the Export Options window.
SLC–500 APS IMPORT/EXPORT UTILITY
EXPORT OPTIONS
ARCHIVE FILE OPTIONS
F1 Annotate ASCII Archive FileYES
PROGRAM DOCUMENTATION FILE OPTIONS
F3 Sort OrderADDRESS STRING
F4 Keyword OptionALL
F5 SymbolsEXPORT
F6 Address CommentsDO NOT EXPORT
F7 Instruction CommentsEXPORT
F8 Rung CommentsDO NOT EXPORT
F10 Select Address TypesO,I,S,B,T,C,R,N,F,M0,M1,ST,A,Labels
F9 Save Configuration
ESC exits/ALT–U aborts changes
Press a Function Key
Rockwell Software, Inc. Copyright 1980
This screen offers you options for configuring the export of both APS archive and
documentation files. The function keys for this particular screen, with the exception
of [F9] – SAVE CONFIG, toggle through all the possible values for a given option.
Take for example the ANNOTAT FILES option: function key [F1] – ANNOTAT
FILES toggles between the values “yes” and “no”, which are the only possible
values for this option. Select an export option from table 4.B.
NoteAPSIE can export online edit INSERT, REPLACE, and DELETE rungs. You can
only cr
eate these rungs with an SLC 5/03 or an SLC 5/04 pr
details on the use of these rungs, see the Advanced Programming Softwar
ocessor
. For mor
e User
e
Manual.
4-4
Page 30
[F1]ANNOTAT FILE
[F3]-SORT ORDER
[]
Exporting
APS Documentation/Archive Files
Table 4.B
Selecting Export Options
If you want to:Toggle:Until the status is:
export the ASCII archive file
with comments explaining
the various sections, like
processor type and data
tables
[F1] - ANNOTAT FILE
export the ASCII archive file
without comments
explaining the various
sections.
sort by ascending order of
the address value, as in:
N7:0, N10:2, N10:10
sort by ascending order of
the address string as in:
N10:10, N10:2, N7:0
sort into groups the
-
comments in the ASCII
documentation file in this
order: symbols, address,
instruction and then rung
comments
place all the keywords for
symbols, rung, instruction,
and address comments at
the beginning of every
statement in the ASCII
documentation file
place keywords at the
beginning of groups with
similar statements
Use the up– and down–arrow cursor keys to move through the address types
displayed in the window, highlighting those types you wish to change.
Tables 4.C and 4.D provide you with two options for configuring the address types:
table 4.C explains how you can change the status of each address type one at a time;
table 4.D explains how you can configure the export utility so that all or none of the
address types are exported.
NoteAfter
permanently by pr
(Pr
this screen you select which address types in the ASCII documentation file
you have configur
ess
[ENTER]
ed the addr
essing [F9] – SA
or
[ESC]
to save the configuration for this session only
ess types, you can save the configuration
VE CONFIG fr
om the Export Options window
.)
.
4-7
Page 33
APS Import/Export Utility User Manual
[F1]
[F1] - TOGGLE
Preface
Table 4.C
Selecting the Export Address Types Individually
If you want to:Toggle:Until the status is:
export all of the program
documentation for
addresses of the type that
you have highlighted.
export none of the program
documentation for
addresses of the type that
you have highlighted.
If you want to:Press:Then:
use this configuration for the
session only
discard any changes that
were made
Table 4.D
Selecting All or None of the Export Address Types
- TOGGLE
ENTRY
[ENTER] or [ESC]
[ALT–U]
YES
NO
APSIE accepts any changes that were
made. Once APSIE is terminated, the
changes are discarded.
APSIE discards any changes that were
made and returns the previous display.
4-8
If you want to:Press:
export all of the program
documentation for all
address types.
export none of the program
documentation for any
address type.
use this configuration for the
session only and return to
the previous display
discard any changes that
were made and return to the
previous display
[F2] - ALL YES
[F3] - ALL NO
[ENTER] or [ESC]
[ALT–U]
Page 34
Exporting APS Files
To export an APS file, follow these steps:
1.Start from the main export display shown below.
SLC–500 APS IMPORT/EXPORT UTILITY
Exporting
APS Documentation/Archive Files
Rockwell Software, Inc.
This software is licensed
EXPORT FILES
SOURCE: EXAMPLE1
DESTIN: ABC
ESC exits
Press a Function Key or Enter File Name
to:
ALL
NOTNOW
9323 – PA
All Rights
2.See the table below to perform the export.
If you want to:Press:
export APS archive &
documentation files
export an APS archive file
only
export an APS
documentation file only
return to the main menu[ESC]
[F7] - EXPORT ACH &
DOC
[F8] - EXPORT ACH
[F9] - EXPORT DOC
File Names
EXAMPLE1
EXAMPLE2
EXAMPLE3
EXAMPLE4
EXAMPLE5
C:\IPDS\TEXT\SLC500
ACH
ACH
ACH
Exists
DOC
DOC
DOC
DOC
4-9
Page 35
APS Import/Export Utility User Manual
Preface
After
the export process begins the screen below is displayed.
The information in the bottom window of the export status area provides the same
information that is stored in the log file. When the export is complete, you have the
option of either viewing the log file or returning to the previous screen.
Rockwell Software Incorporated
9323 Series Software
SLC–500 IMPORT/EXPORT SOFTWARE
ANNOTATE ASCII ARCHIVE FILE:YES
Examining the Results of the Export
The log file provides the results of the export. It lists any errors that the utility
encountered during the export process. For each error, it identifies the type of error
and the location where the error was encountered in the ASCII file. “Illegal
Addresses” and “Illegal Comments” are two examples of errors that you may
encounter.
The default location for the log file is \IPDS\TEXT\SLC500. The log filename
consists of the APSIE archive path, which you defined while configuring the export
utility using [F6] ASCII DIR, the destination file name which you defined in
the export utility using [F4] ENTER DESTIN, and the file extension .LOG.
APSIE also allows you to verify that a new text file was created. The text filename
consists of the destination filename and the file extension .TXT.
4-10
Page 36
Creating an
ASCII
Archive File
5
Creating an ASCII Archive File
This chapter shows you how to create your own SLC 500 program in ASCII archive
file format. You can use these programs with the import utility. This chapter
consists of the following sections:
•
explaining keywords, operands, and comments
•specifying ASCII archive files
•protecting archive files
•examining ASCII archive files
So that you may better understand and see the relationship between APS and ASCII
programming languages, example APS ladder programs are included with the
example ASCII programs.
5-1
Page 37
APS Import/Export Utility User Manual
Preface
Explaining Keywords, Operands, and Comments
Each section of the ASCII archive file usually consists of keywords, operands, and
comments.
Keywords
Keywords include symbols and ladder instruction mnemonics. T
able 5.A explains
the location of each keyword in the ASCII archive file.
Table 5.A
Defining Keywords
This KeywordPrecedes
STARTthe start of an ASCII file.
RACKthe definition of an expansion chassis. (does not apply to MicroLogix
SLOTthe definition of an I/O module. (does not apply to MicroLogix 1000
DATAthe definition of a data table file.
PROJECTthe project name and ladder filenames.
LADDERthe definition of a ladder file.
FORCEthe definition of a force table.
CHAN_CONFIGthe definition of a channel configuration file. (SLC 5/03 and SLC 5/04
INPUT_FILTERSthe definition of an input filter file. (MicroLogix 1000 controllers only)
MULTIPOINTthe definition of an I/O list. (SLC 5/03 OS302, SLC 5/04 OS401, and
1000 controllers)
controllers)
These keywords are used in conjunction with SLOT
(SLC 5/02, SLC 5/03, and SLC 5/04 processors only)
D SCAN_INNumber of scanned inputs.
D SCAN_OUT Number of scanned outputs.
D M1_SIZENumber of M1 data file words.
D M0_SIZENumber of M0 data file words.
D ISRInterrupt service routine file number.
D G_FILEData for G-file.
processors only)
MicroLogix 1000 controllers only)
5-2
The SLC 5/03 and SLC 5/04 processors have three keywords that indicate that a file
is protected. See table 5.B.
Page 38
Creating an
Table 5.B
Defining Keywords for SLC 5/03 and SLC 5/04 Processors
This KeywordIndicates
PROTECT_DATAthe type of DATA file protection applied to the specified file(s). The
following keywords are used in conjunction with PROTECT_DATA:
ASCII
Archive File
Operands
D CONSTANT Data file cannot be changed by the user or user
D STATICData file can only be changed by the user
D MEM_MOD Protects individual data files from changes
PROTECT_LADthe LADDER file(s) specified are protected.
PROTECT_FORCEthat all FORCE file(s) are protected.
Operands are either
logical addr
esses or
program during program operation.
program during program operation.
during memory module transfers if the programs
match and are valid.
immediate values
. You can enter the
logical addresses in any valid format. The import utility generates the complete
address format. You may enter the immediate values in decimal, hex, octal, or
binary formats. See table 5.C.
Table 5.C
Defining Immediate Values
Format:Description:Example:
decimal
hex
octal
binary
floating point
a number with an optional plus or minus sign and
decimal digits.
a number that starts with a zero, followed by an X", then
any four characters from 0-9 or A-F.
a number that starts with a zero, followed by an O",
then any six digits from 0 to 7.
a number that starts with a zero, followed by a B", then
up to 16 zeros or ones.
a number with an optional plus or minus sign that falls in
the range of 3.402823x10
38
to 1.1754944x10
-38
or 0.0
-32768
OXFA90
0O370010
0B010110
-32768.00
5-3
Page 39
APS Import/Export Utility User Manual
Preface
Comments
You can add comments anywhere in the ASCII archive file when you create it.
To add a single line comment, place the comment after an exclamation mark (!). In
this case, the import utility ignores all text from the exclamation mark to the end of
the line.
You may also enter comments in the ASCII archive file by inserting the comment
between two percent signs. (Tabs, carriage returns or spaces before and after the
percent signs are optional.) For example: % This is a comment %. You may
include one or more carriage returns in a comment of this type.
Enter comments on a single line or several lines by themselves, or directly following
a complete ASCII command. If the import utility encounters a comment character
(% or !) between two quotation marks (“”), it considers the comment character as
part of the quoted string.
The following example shows you how comments may look in your import file.
Notice that the comments used to document ASCII files only describe those files.
The import utility does not store these comments in the database.
5-4
!This is an example of a single–line comment.
Project 1747–L511 % 1747–L511 IK Modular CPU %
LADDER 2
SOR!Rung 0 of File 2
XIC B3/0 OTL B3/1 EOR
SOR XIC B3/1 TON T4:0 0.01 1000 0 EOR % Timer 0 %
Page 40
Specifying ASCII Archive Files
When specifying an ASCII archive file, be aware of the following guidelines:
•To create the file, use a text editor that produces only printable ASCII
characters, with no control or hidden characters.
•
Do not use graphics characters.
The ASCII archive file is made up of six sections for MicroLogix 1000 controllers,
six sections for SLC 5/01 and SLC 5/02 processors, and seven sections for SLC 5/03
and SLC 5/04 processors. These sections are shown in table 5.D.
Creating an
ASCII
Archive File
Of these sections, you must arrange three of them, the program header
configuration, and module configuration (bold in table 5.D) in the order shown in
table 5.D. In general, you can enter the remaining sections in any order, beginning
with the data table section.
NoteThe
important if your program files contain instructions that use data table files to stor
control information. (For example, the MSG instruction uses a data table file to
stor
such cases, see the table below:
, chassis
or
der in which you enter the pr
ogram files section and the data table section is
e information such as the node number, message length, and file number
If you enter theafter you enter the
data table sectionprogram files section
program files sectiondata table section
be careful not to overwrite
the existing
control information with new
data table information.
data table values with
instruction control
information.
e
.) For
5-5
Page 41
APS Import/Export Utility User Manual
Preface
Table 5.D
ASCII Archive File
Program
Chassis Configuration
Module Configuration
Header
(does not apply to MicroLogix 1000 controllers)
(does not apply to MicroLogix 1000 controllers)
Project Name
Program Files
File 2
:
File n
Data T
able
Channel Configuration Data List (SLC 5/03 and SLC 5/04 processore only)
Multi-Point I/O List (SLC 5/03 OS302, SLC 5/04 OS401 processors, and
MicroLogix 1000 controllers only)
5-6
Page 42
Specifying the Program Header
Creating an
ASCII
Archive File
The program header defines the target processor for the import utility. Y
ou must
provide information for this section of the archive file. (You could leave any of the
other six sections empty
.)
The program header format for fixed and modular controllers consists of the
keyword “START” and the controller catalog number. Do not enter the catalog
number with tabs or spaces. For “other” fixed controllers the program header
format consists of the keyword “START”, “OTHER–1K” and the processor ID.
See table 5.E.
Table 5.E
Program Header Formats and Examples
Program Header Format:Example Program Header:
START Controller_catalog_numberSTART 1747-L20A
START Other-1K Processor_IDSTART OTHER-1K 1920
The available controllers include 20, 30, and 40 I/O fixed controllers, as well as 3
different modular processors. Input, output and line power information in the tables
is for reference only
. See tables 5.F
If you use a fixed processor not specified in tables 5.F
, G, H, I, and J.
, G, or H, you must use the
processor name “OTHER–1K” (undefined fixed controller with 1K of memory).
The processor ID refers to the ID code specified in the user manual for your
processor.
5-7
Page 43
APS Import/Export Utility User Manual
Preface
Table 5.F
20 I/O Fixed Controller
Controller
Catalog Number:
1747-L20A12-120V ac8-Relay120/240V ac
1747-L20B12-120V ac8-Triac120/240V ac
1747-L20C12-dc Sink8-Relay120/240V ac
1747-L20D12-dc Sink8-Triac120/240V ac
1747-L20E12-dc Sink8-Transistor120/240V ac
1747-L20F12-dc Sink8-Relay24V dc
1747-L20G12-dc Sink8-Transistor24V dc
1747-L20L12-dc Source8-Transistor24V dc
1747-L20N12-dc Source8-Transistor24V dc
1747-L20P12-240V ac8-Triac120/240V ac
1747-L20R12-240V ac8-Relay120/240V ac
Inputs:Outputs:Line Power:
Table 5.G
30 I/O Fixed Controllers
Controller
Catalog Number:
1747-L30A18-120V ac12-Relay120/240V ac
1747-L30B18-120V ac12-Triac120/240V ac
1747-L30C18-dc Sink12-Relay120/240V ac
1747-L30D18-dc Sink12-Triac120/240V ac
1747-L30L18-dc Source12-Transistor120/240V ac
1747-L30P18-240V ac12-Triac120/240V ac
Inputs:Outputs:Line Power:
5-8
Page 44
Table 5.H
40 I/O Fixed Controllers
Creating an
ASCII
Archive File
Controller
Catalog Number:
1747-L40A24-120V ac16-Relay120/240V ac
1747-L40B24-120V ac16-Triac120/240V ac
1747-L40C24-dc Sink16-Relay120/240V ac
1747-L40E24-dc Sink16-Transistor120/240V ac
1747-L40F24-dc Sink16-Relay24V dc
1747-L40L24-dc Source16-Transistor120/240V ac
1747-L40P24-240V ac16-Triac120/240V ac
Inputs:Outputs:Line Power:
Table 5.I
Modular Processors
Controller
Catalog Number:
1747-L511SLC 5/01 1K User Memory
1747-L514SLC 5/01 4K User Memory
1747-L524SLC 5/02 4K User Memory
1747-L532SLC 5/03 OS300 12K User Memory
1747-L532SLC 5/03 OS301 12K User Memory
1747-L532SLC 5/03 OS302 12K User Memory
1747-L541SLC 5/04 OS401 12K User Memory
1747-L542SLC 5/04 OS400 20K User Memory
1747-L542SLC 5/04 OS401 28K User Memory
1747-L543SLC5/04 OS401 60K User Memory
Type:
5-9
Page 45
APS Import/Export Utility User Manual
Preface
Table 5.J
MicroLogix 1000 Controllers
Controller
Catalog Number:
1761-L16AWA10 pt. ac6-Relay120/240V ac
1761-L32AWA20 pt. ac12-Relay120/240V ac
1761-L16BWA10 pt. ac6-Relay120/240V ac
1761-L32BWA20 pt. ac12-Relay120/240V ac
1761-L16BWB10 pt. dc6-Relay120/240V ac
1761-L32BWB20 pt. dc12-Relay120/240V ac
1761-L16BBB10 pt. dc
1761-L32BBB20 pt. dc
1761-L32AAA20 pt. ac
Inputs:Outputs:Line Power:
4-FET and
2-Relay
10-FET and
2-Relay
10-Triac and
2-Relay
120/240V ac
120/240V ac
120/240V ac
5-10
Page 46
Creating an
ASCII
Archive File
Configuring the Chassis (Does Not Apply to MicroLogix 1000 Controllers)
The
chassis configuration format consists of the keyword “RACK”, the
number
and
have. For example:
RACK
Keyword Chassis Number Catalog Number
Specifying the Chassis Number
chassis number is the location of the expansion chassis in the I/O configuration.
The
An SLC 500 modular processor can use up to three chassis. The chassis containing
the processor is always chassis number 1. If you have more than one chassis,
number the chassis that follow number 2 and number 3. The chassis numbers must
be specified in order; that is, specify chassis 1 before specifying chassis 2. (3 is the
largest valid chassis number for modular style hardware.)
catalog number
1 1746–A4
.
Use this format for each expansion chassis that you
chassis
Chassis Number 1
SLC 500 Processor
SLC 500 Modular Controller
Chassis Number 2Chassis Number 3
The SLC 500 fixed controller has only one chassis. Therefore, always enter 1 for
the chassis number when using a fixed processor with a 2–slot (1746–A2) expansion
chassis.
5-11
Page 47
APS Import/Export Utility User Manual
Preface
SLC 500 Fixed Controller
SLC 500 Processor1746-A2
Specifying the Chassis Catalog Number
chassis catalog number defines the type of expansion chassis. When you enter
The
the catalog number
, do not use tabs or spaces between the numbers and letters.
If you enter an invalid catalog or chassis number, the import utility ignores the
chassis configuration section of the ASCII archive file and displays an error
message, which is written to the log file. Table 5.K lists the catalog numbers for the
available chassis. (The information concerning chassis description and type of
hardware style required is provided for reference only.)
Chassis Number 1
5-12
Table 5.K
Available Expansion Chassis
Catalog Number :Chassis Description:
1746-A22-slot BackplaneFixed
1746-A44-slot BackplaneModular
1746-A77-slot BackplaneModular
1746-A1010-slot BackplaneModular
1746-A1313-slot BackplaneModular
Type of Hardware
Style Required
(Modular/Fixed):
Page 48
Creating an
g
ASCII
Archive File
Configuring the I/O Slots (Does Not Apply to MicroLogix 1000 Controllers)
There are three formats that you can use to define the I/O slot configuration. The
format that you use depends on your module. See table 5.L.
Table 5.L
Determining which I/O Slot Format to Use
Use these
optional
If your module:
is listed in Table 5.M
is not included in Table 5.M
and the module ID number is
not 63xx, 95xx, 127xx, 159xx,
199xx, 223xx, or 255xx
is not included in Table 5.M
and the module ID is 63xx,
95xx, 127xx, 159xx, 199xx,
223xx, or 255xx
Use the following I/O Slot Format
(Core Elements):
(Format 1)
SLOT Slot_number Catalog_number
(Formal 2)
SLOT Slot_number Module_ID
(Format 3)
SLOT Slot_number
Extended_module_ID Max_input
Max_output
arguments with
the core elements
for Modular
Controllers only:
SCAN_IN x
SCAN_OUT x
M0_SIZE x
M1_SIZE x
ISR x
G FILE g_file_size
__
g_file_data . . .
(See Table 5.N for
greater detail on
the optional
arguments.)
5-13
Page 49
APS Import/Export Utility User Manual
Preface
Table 5.M
Available Modules for SLC 500
Description of Available Modules:Catalog Number:
4-input 100/120V ac1746-IA4
8-input 100/120V ac1746-IA8
16-input 100/120V ac1746-IA16
4-input 200/240V ac1746-IM4
8-input 200/240V ac1746-IM8
16-input 200/240V ac1746-IM16
8-output (TRIAC) 100/240V ac1746-OA8
16-output (TRIAC) 100/240V ac1746-OA16
8-input (SINK) 24V dc1746-IB8
16-input (SINK) 24V dc1746-IB16
32-Input (SINK) 24V dc1746-IB32
16-input [TTL](SOURCE) 5V dc1746-IG16
8-input (SOURCE) 24V dc1746-IV8
16-input (SOURCE) 24V dc1746-IV16
32-Input (SOURCE) 24V dc1746-IV32
8-output [TRANS](SOURCE) 10/50V dc1746-OB8
16-output [TRANS](SOURCE) 10/50V dc1746-OB16
32-Output [TRANS](SOURCE) 10/50V dc1746-OB32
8-output [TRANS](SINK) 10/50V dc1746-OV8
16-output [TRANS](SINK) 10/50V dc1746-OV16
32-Output [TRANS](SINK) 10/50V dc1746-OV32
16-output [TTL](SINK) 5V dc1746-OG16
4-output [RLY] 240V ac1746-OW4
8-output [RLY] 240V ac1746-OW8
16-output [RLY] 240V ac1746-OW16
2-input 100/120V ac 2-Output [RLY]1746-IO4
4-input 100/120V ac 4-Output [RLY]1746-IO8
6-input 100/120V ac 4 6-Output [RLY]1746-IO12
Node Adaptor Module (1/4 Chassis)1747-DCM-1/4
Node Adaptor Module (1/2 Chassis)1747-DCM-1/2
Node Adaptor Module (3/4 Chassis)1747-DCM-3/4
Node Adaptor Module (Full Chassis)1747-DCM-FULL
4 Channel Analog Input1746-NI4
Analog Combination 2 In & 2 Current Out1746-NIO4I
➀
Table
5.M continues on to the next page.
➀
5-14
Page 50
Creating an
Table 5.M
Available Modules for SLC 500 (continued)
Description of Available Modules:Catalog Number:
Fast Analog Combination 2 In & 2 Current Out1746-FIO4I
Analog Combination 2 In & 2 Voltage Out1746-NIO4V
Fast Analog Combination 2 In & 2 Voltage Out1746-FIO4V
The following screens show you how the APS G–file monitor displays the G–file
examples in table 5.O.
5-16
See the following
screen:
Page 52
Creating an
Screen 1
Address 0 123456789
G1:0 0 000000000
Screen 2
Address 0 123456789
G2:0 0 2345
ASCII
Archive File
The common elements in the three formats are the keyword “SLOT” and the slot
number. The slot number defines the location of the module. The first slot of the
first chassis, slot 0, always contains the CPU module. The lar
gest possible slot
number for fixed style hardware is 2; for modular style hardware it is 30. Determine
the number of configurable slots by the number and types of chassis used. See
figure 5.1.
Figure 5.1
Determining the Slot Number of a 10–Slot Chassis (1747–A10)
192
SLC 500 Processor
(Slot Number 0)
To complete the I/O slot configuration, use one of the three formats specified in
table 5.L. See table 5.P for examples of the I/O slot configuration formats.
The data table lists define the SLC 500 data table. There are two ways that
addresses are defined. Y
ou can:
•let the import utility define the file type and lar
is empty
OR
gest address when the data table
•enter the data table and describe each data file. This section will help you
accomplish this task.
The data table is the list of data files that the processor uses. The data file format
consists of the keyword DA
addresses and files may also be entered with a value list.
TA and a logical address or logical file. Logical
5-18
Page 54
Defining the Logical Address
The logical address consists of the file type, file number, a delimiter (a colon or
semicolon) and the lar
Logical Address
DATA N 7 : 5 1 2 3 4 5 6
gest logical address. For example:
Creating an
ASCII
Archive File
File Type
File Number
Data File Addressing
If you precede the logical address with three periods (...), the import utility places
the data contained in the value list into the data file starting at the logical address.
Otherwise, the import utility places the data contained in the value list into the data
file starting at word 0. The import utility determines the correct size for the file
based on the number of data elements in the value list.
String File Addressing
When defining a String (ST) file address, you must precede the file type with three
periods (such as DA
number [respectively], ranging from ST9:0–ST9:255 through ST255:0–ST255:255).
Delimiter
Largest Logical Address
TA ...ST#:# where the #s are the file number and element
5-19
Page 55
APS Import/Export Utility User Manual
Preface
Defining the Logical File
The logical file consists of only the file type and data file number. For example:
Logical File
DATA N 7:5 1 2 3 4 5 6
File TypeFile Number
If you supply only the file type and number (a logical file), the import utility
calculates the correct data table size for the file.
Defining the Value List
The value list defines the initial values for the data table file. Y
ou can leave the
value list empty or supply immediate values. See the example below; it shows a
value list with immediate values.
Value List
DATA N 7:5 1 2 3 4 5 6
If
you leave the value list empty
, the import utility creates the data table specified by
the logical address. The import utility then initializes the data file with zeros. For
example, the data file “DAT
A N10:5” would create data table N10 and allocate six
words of data with zeros for data values.
The import utility adjusts the size of the data table to fit all data table values. You
can enter initial data values using binary, decimal, hex, or octal format. (Enter
formats in upper or lower case letters.)
5-20
Page 56
Important Notes on Data Table Files
Read these notes before entering the data table files.
Creating an
ASCII
Archive File
•Input
and
output data tables are initialized one slot at a time. Therefore, the I/O
configuration, not the value list, determines the data table size for output and
input files.
•The data table files of a MicroLogix 1000 controller are fixed in type and size.
You can use the value list only to initialize or alter the data values of a
MicroLogix 1000 controller.
•You cannot provide initializing data for M0 and M1 files.
•The processor type determines the size of the Status file (S2). The fixed
controllers and SLC 5/01 processors have 16 elements, the SLC 5/02 processors
and MicroLogix 1000 controllers have 33 elements, the SLC 5/03 processors
have 83 elements, the SLC 5/04 OS400 processors have 87 elements, and the
SLC 5/04 OS401 processors have 164 elements. The value list does not alter
the data table size of the Status file (S2). There is no range checking done of
Status file values.
•Y
ou can enter a logical address to the element level only
ignores subelement and bit addresses. See table 5.Q for an example of valid
and invalid logical addresses.
The following screens show you how the APS data monitor displays the data file
examples in table 5.R.
Screen 1
Command
N7:5
Screen 2
Command
N7
Screen 3
Command
N7:512345
Screen 4
Command
N712345
Address 0123456789
N7:0000000
Address 0123456789
N7:00
Address 0123456789
N7:0123450
Address 0123456789
N7:012345
5-22
Screen 5
Command
. . . N7:556
Address 0123456789
N7:00000056
Page 58
Example Data Files
%
Creating an
ASCII
Archive File
The following examples show initial data values in decimal, hex and octal formats.
The comments between the percent signs (%) explain each of the formats.
DATA N7:16!Initial Data Values in Decimal Format
% The import utility allocates data elements N7:0 to N7:16, which are
initialized to zero if they do not exist %
% The import utility places 5249 into the data file at address N7:16 %
% The import utility places 110 into the data file at address N7:31 %
524905490 000100
–160 8100 110
DATA N7:37!Initial Data Values in Hex Format
% The import utility allocates data elements N7:0 to N7:37, which are
initialized to zero if they do not exist %
% The import utility places 0X1111 into the data file at address N7:0 %
% The import utility places 0X2323 into the data file at address N7:31
% Since four words of input are given, there are four words of input
configured for slot 1 %
% The import utility places 00000043 into the data file at address
I:1.0 %
% The import utility places 0O170000 into the data file at address
I:1.3 %
0O000043 0O000000 0O000021 0O170000
Defining Timers, Counters, and Control Data Files
Enter Timer (T) and Counter (C) data in the following order: CTL, PRE, and ACC.
For example:
DATA T4:0 0XE000 100 0
5-23
Page 59
APS Import/Export Utility User Manual
Preface
Notice in the preceding example that “0XE000” indicates that control bits EN, TT
and DN are set to one.
Enter the contRol (R) data values in the following order: CTL, LEN and POS. The
import utility does not prevent undefined control bits from being set. Providing data
for undefined control bits does not affect a program.
The control word (CTL) defines the control bits for timers (T), counters (C) and
control (R) file. See tables 5.S, T
Table 5.S
Control Bits for Timers Defined by the Word CTL
Bit AddressBit NameBit Number
T4:0/ENEnable15
T4:0/TTTiming14
T4:0/DNDone13
Table 5.T
Control Bits for Counters Defined by the Word CTL
, and U.
5-24
Bit AddressBit NameBit Number
C5:0/CUCounter up enable15
C5:0/CDCounter down enable14
C5:0/DNDone; accumulator w preset value13
C5:0/OVOverflow12
C5:0/UNUnderflow11
C5:0/UAUpdate accumulator (HSC only)10
C5:0/HPAccumulator w hi preset (MicroLogix 1000 controller HSC only)9
C5:0/LPAccumulator v lo preset (MicroLogix 1000 controller HSC only)8
Table 5.U
Control Bits for Control Files Defined by the Word CTL
Bit AddressBit NameBit Number
R6:0/ENEnable15
R6:0/EU
R6:0/DN
R6:0/EM
R6:0/ERError11
R6:0/ULUnload10
R6:0/IN
R6:0/FDFound08
➀
When CTL is used with an ASCII instruction.
Enable Unload -or- Queued
Done -or- Asynchronous Done
Empty -or- Synchronous Done
Inhibit -or- Running
Entering the Project Name and Program File List
Creating an
➀
➀
➀
➀
14
13
12
09
ASCII
Archive File
The project name format consists of the keyword “PROJECT”, pr
program
PROJECT
Keyword
file number
Project Name
and program filename. For example:
“AB” 2
“POWERUP”
Program Filename
Program File Number
oject name
,
Use up to eight alphanumeric, underscore, or IBM–extended characters, in any
combination, to specify the project name. If the project name does not match the
filename of the archive file, or if the project name is left blank, the import utility
uses the name of the archive file.
The list of program file numbers and names, if included, follows the project name.
You must specify the file number first, then the filename.
The file number is an immediate integer value (2–15 for MicroLogix 1000
controllers; 2–255 for all other controllers and processors). You do not have to
specify the program file numbers in order
You specify the program filename like the project name. Y
, for example: 2 “AB” 5 “A” 3 “B”.
ou may use up to ten
characters.
5-25
Page 61
APS Import/Export Utility User Manual
Preface
Specifying the Ladder Program Files
The ladder program filename consists of the keyword “LADDER,” the file number
and, if included, the
rung list
. For example:
LADDER
KeywordLadder File Number
If you leave the rung list empty, the import utility creates the EOR instruction.
For MicroLogix 1000 controllers, files 2 to 15 are fixed ladder program files. For
all other controllers and processors you can specify program files 2 to 255 as ladder
program files.
A rung may consist of the following:
3 SOR OTE B/0 EOR
Rung List
•start of rung symbol (SOR)
•input instructions
•output instructions
•end of rung symbol (EOR)
The import utility processes the rung left–to–right and top–to–bottom. Also, the
import utility processes each branch structure before proceeding to the next
instruction on a given line.
5-26
The ladder rung consists of three basic structure types described in table 5.V. Figure
5.2 shows a simple program before and after the import utility converts it from an
ASCII program file into an APS ladder program. Notice how the instructions and
structures in table 5.V correspond to the instructions in the ASCII program file and
the rung structures in the APS ladder program in figure 5.2.
Page 62
Table 5.V
The Branch Types of the Ladder Rung
Creating an
ASCII
Archive File
Notice this same
instruction in the
ASCII Program
File in Figure 5.2:
Structure
Types:
Branch Type
defined in
ASCII:
Branch StartBSTBST A
Next BranchNXBB NXB
Branch EndBNDC BND
Figure 5.2
Illustrating the Branch Types of the Ladder Rung
ASCII Program File
SOR BST A
NXB
B NXB
C BND
D
EOR
Branch Type in APS ladder
programming:
APS Import Utility
converts ASCII
Program File into
APS Ladder Program.
Notice this same branch type in
the APS Ladder Program in
Figure 5.2:
A
B
C
APS Ladder Program
A
B
C
D
Example ASCII Program and APS Ladder Rung
Figure 5.3 shows an example program first in ASCII file format, then in ladder
format. The program consists of an input and output instruction list. Also included
in the program is a timer instruction (TON). (You can leave the input instruction list
empty, but not the output instruction list.) Use table 5.W to understand the
comparisons made between the two programs in figure 5.3.
NoteIn
APS, you can nest only four levels of branches.
5-27
Page 63
APS Import/Export Utility User Manual
Preface
Table 5.W
Key to Figure 5.3
SOR BST BSTXICI:3/4 NXB
Output
List
EOR
The following ASCII
Instructions (highlighted in
the ASCII program below):
Specify this designated part
of the APS ladder rung:
XIO I:3/5
XIC I:3/6
OTE O:5/6
TON T4:3 1.0 200 0 BND
Figure 5.3
Example ASCII Program File and APS Ladder Program
ASCII Program File
XIO I:3/5 BND
XIC I:3/7
XIC I:3/6 NXB
XIC I:3/6 BND
BST OTE O:5/6 NXB
TON T4:3 1.0 200 0 BND
Input
List
Rung 3:0
I:3
][
I:3
] / [
I:3
][
Input
List
I:3
4
5
6
][
7
APS Ladder Program
I:3
][
6
Output
List
O:5
()
6
TON
TIMER ON DELAY
TimerT4:3
Time base1.0
Preset200
Accum0
(EN)
(DN)
5-28
Page 64
Specifying the Force Table List
The format for specifying the force table consists of the keyword “FORCE”, a force
table addr
ess
and a
value list
. For example:
Creating an
ASCII
Archive File
FORCE
KeywordForce Table AddressValue List
I:4 1 2 3 4
The value list contains the force on and force off information for the specified force
table address. Y
ou do not have to specify the value list.
When specifying the force table list, use the formats in table 5.X.
Table 5.X
Force Table Formats and Examples
Force Table Formats:
FORCE Force_table_addressFORCE I:4checks if address is configured
FORCEForce_table_address Value_listFORCE I:4 1 2I:4.0 force on = 1, force off = 2
FORCE . . . Force_table_address Value_listFORCE . . . O:7.4 1 2O:7.4 force on = 1, force off = 2
Example Force
Table Entry:
The Example Force Table Entry
Does the Following:
Every word of I/O consists of two corresponding words of force data: one word of
force on data and one word of force off data. Force data tables start with the force
on word, followed by the corresponding force off word. Initialize the force data
tables one slot at a time.
In the following example, the force address “FORCE I:4” initializes the first three
words of input force data for slot four, forcing bits I:4.0/0 and I:4.1/4 off, while
forcing bits I:4.2/0 and I:4.2/1 on. (This example assumes that you configured three
or more words of input for slot four.)
5-29
Page 65
APS Import/Export Utility User Manual
Preface
FORCE I:4
% ON %% OFF %
% I:4.0 % 0x0000 0x0001
% I:4.1 % 0x0000 0x0010
% I:4.2 % 0x0003 0x0000
In this example, the force address “FORCE...O:7.4” skips over the first four words
of slot seven and forces bit O:7.4/0 off and bit O:7.5/8 on.
FORCE ...O:7.4
% ON %% OFF %
% O:7.4 % 0x0000 0x0001
% O:7.5 % 0x0100 0x0000
Specifying the Channel Configuration Data List
(SLC 5/03 and SLC 5/04 Processors Only)
The required format for specifying the channel configuration data list consists of the
keyword “CHAN_CONFIG” and a
CHAN_CONFIG
KeywordChannel Configuration Type
You
can also specify a value list, which contains the channel configuration
information for the specified channel configuration file. If you leave the list empty,
APSIE initializes a default channel configuration file.
NoteWhile the APSIE utility verifies that the driver (as encoded as the low byte of the
first wor
fields ar
You can also set the channel configuration file to a default driver configuration. To
do this, use the default driver keyword entry.
5-30
d) is corr
e corr
GEN
ect for the channel, it does not verify (range check) that the other
ect.
channel configuration file type. For example:
Page 66
Channel Configuration File Types
Table 5.Y defines the three file types that you can use as part of a channel
configuration data list.
Table 5.Y
File Types
Creating an
ASCII
Archive File
Default
Channel Configuration File
GENGeneral Configuration File
CH0SYSChannel 0 System Mode Configuration File
CH1SYSChannel 1 System Mode Configuration File
CH0USERChannel 0 User Mode Configuration File
Drivers
Types
The following are valid default driver entries:
•DH485
•DF1HD
•DF1FD
•ASCII
•SHUTDOWN
•DH+
Channel Configuration Formats
Definition
The following are valid channel configuration formats:
•CHAN_CONFIG channel_config_file_type
The example below generates a default General Configuration File.
Specifying the Adjustable Input Filters List
(MicroLogix 1000 Controllers Only)
The format for specifying the input filters list consists of a keyword
INPUT_FILTERS and a
value list
. For example:
5-32
INPUT_FILTERS 1 2 3
KeywordValue List
The value list represents the maximum on delay for the filters in ms, as shown in
table 5.Z.
Page 68
Table 5.Z
Value List Options
Creating an
ASCII
Archive File
Value List
0.075
1.5
21
32
44
58
616
7.1
8.25
Maximum on Delay
for Filters (ms)
If you do not use the keyword INPUT_FILTERS, or if you leave the value list
empty, APSIE initializes a default input filter setting.
The following are valid input filter formats:
•EMPTY
The example below generates a default that sets all filters to 8 ms.
!
•INPUT_FILTERS EMPTY
The example below generates a default that sets all filters to 8 ms.
!INPUT_FILTERS
•INPUT_FILTERS value list
The example below sets the filters to .5 ms, 1 ms, 2 ms.
!INPUT_FILTERS 1 2 3
5-33
Page 69
APS Import/Export Utility User Manual
Preface
Specifying the Multi-Point I/O List
In the APS Import/Export Utility, the multi-point I/O list has been added to the
ASCII archive file for use with the SLC 5/03 OS302 and SLC 5/04 OS401
processors, and MicroLogix 1000 controllers.
The format for specifying the multi-point I/O list consists of a keyword
MULTIPOINT and a bit position, bit addrdescription. For example:
MULTIPOINT
Keyword
Bit Position
There are 0–15 bit positions for MicroLogix 1000 controllers, and 0–31 bit positions
for SLC 5/03 OS302 and SLC 5/04 OS401 processors. An error occurs if you:
•
assign duplicate bit positions
0B3:1 1 “pilot light on” “pilot light off”
Bit
Address
ess, access flag, on description, and off
On Description
Off Description
Access
Flag
5-34
•specify more than 16 value pairs
•use a bit address that is invalid for the selected controller
•
assign invalid state
If you do not use the keyword MULTIPOINT, or if you leave the value list empty,
APSIE initializes a default list of null values.
Page 70
Creating an
ASCII
The following are valid multi-point I/O formats:
•EMPTY
The example below generates a default list of null values.
!
•MULTIPOINT
EMPTY
The example below generates a default list of null values.
!MULTIPOINT
•MULTIPOINT
value list
The example below shows two entries in the list; all other positions in the list
default to null values.
!MULTIPOINT
1N7:2/120 “on description”“off description”
3C5:0/IH1 “on description”“off description”
Archive File
5-35
Page 71
APS Import/Export Utility User Manual
Preface
Protecting Archive Files
(SLC 5/03 and SLC 5/04 Processors Only)
There are three types of file protection: data, ladder, and force.
Data File Protection
To protect a data file, place the keyword entry at the end of the data file. For
example:
PROTECT_DATA N7 STATIC
KeywordLogical FileProtection Type
Note Default
The following are example data file protection entries:
•
The example below causes data file B3 to be CONST
PROTECT_DATA B3 CONSTANT
•The
PROTECT_DATA N7 STATIC
•The
PROTECT_DATA N7 MEM_MOD
data file pr
example below causes data file N7 to be ST
example below causes data file N7 to be MEMory MODule protected.
otection is: output file = STATIC; all other files = unprotected.
ANT protected.
ATIC protected.
5-36
Page 72
Ladder File Protection
To protect a ladder file, place the keyword entry at the end of the ladder file. Also,
you cannot set file protection in a program that has edit zones from an online editing
session. (The APS default for file protection is no program files protected.) Use the
following format:
PROTECT_LAD 3
KeywordFile Number
The example above causes program file 3 to be protected.
Force File Protection
Force
files can be protected against changes by using the PROTECT_FORCE
keyword, as shown here:
Creating an
ASCII
Archive File
PROTECT_FORCE
NoteThis
Keyword
keywor
d globally pr
otects all for
ce files.
5-37
Page 73
APS Import/Export Utility User Manual
Preface
Examining ASCII Archive Files
This
section provides you with two example programs, each shown as an ASCII
archive file and, for comparison, as an APS ladder program.
Example Program #1
The following program example has two rungs. The first rung has a timer
instruction, the second a nested branch.
LADDER 4
% RUNG 0 %
SOR ADD N7:1 N7:2 N7:3 EOR
% RUNG 1 %
SOR RET EOR
% FORCE TABLE INFORMATION %
FORCE O:2
% ONOFF%
0x00000x0000% FORCE O:2.0 %
% 0x00000x0000% FORCE O:2.1 %
FORCE O:5
% ONOFF%
0x00000x0000% FORCE O:5.0 %
0x00000x0000% FORCE O:5.1 %
0x00000x0000% FORCE O:5.2 %
0x00000x0000% FORCE O:5.3 %
0x00000x0000% FORCE O:5.4 %
0x00000x0000% FORCE O:5.5 %
0x00000x0000% FORCE O:5.6 %
0x00000x0000% FORCE O:5.7 %
FORCE O:7
% ONOFF%
0x00000x0000% FORCE O:7.0 %
FORCE I:2
% ONOFF%
0x00000x0000% FORCE I:2.0 %
0x00000x0000% FORCE I:2.1 %
FORCE I:3
% ONOFF%
0x00000x0000% FORCE O:7.0 %
FORCE I:5
% ONOFF%
0x00000x0000% FORCE O:5.0 %
0x00000x0000% FORCE O:5.1 %
0x00000x0000% FORCE O:5.2 %
0x00000x0000% FORCE O:5.3 %
0x00000x0000% FORCE O:5.4 %
0x00000x0000% FORCE O:5.5 %
0x00000x0000% FORCE O:5.6 %
0x00000x0000% FORCE O:5.7 %
This chapter shows you how to create your own ASCII documentation file. Y
use these documentation files with the import utility
following sections:
•creating ASCII documentation files
•examples of ASCII documentation files
. This chapter consists of the
ou can
6-1
Page 80
APS Import/Export Utility User Manual
Preface
Creating an ASCII Documentation File
When creating an ASCII documentation file, follow these guidelines:
•To create the file, use a text editor that produces only printable ASCII
characters, with no control or hidden characters.
•
Do not use graphics characters. IBM extended characters can be used within
comment strings and as part of symbols.
The ASCII documentation file may contain one or more of the following:
•
address comments
•instruction comments
•rung comments
•symbols
You can group statements together by keyword, or begin each statement with a
keyword. The following example shows an ASCII file using grouped statements.
Notice that all symbols group together after you enter the keyword “SYM”. The
address comments follow the keyword “AC”. Y
multiple times in a file.
The example below shows an ASCII documentation file with a keyword for each
statement.
SYMI:0.0/0C5UNDERFL
AC I:0.0/0“Totalizer Pulse Counter”
ICXIOI:0.0/0“North Cutter Running”
ICJMP2:LBL5“Jump to label 5”
ASCII Documentation File
Keywords
ASCII Programming Instructions
Placing Address Comments
An address comment is a text string (a maximum of 50 characters), which provides
notes or remarks for an address. To enter an address comment, keep the following
in mind:
•
Address comments should begin and end with quotation marks (“ ”), and should
follow the instruction address on the same line.
•Do not use carriage returns. If you want a carriage return to appear in a
comment, use a back slash (\) in the comment to represent a carriage return.
(Note that this back slash is considered a character in the 50–character limit.)
•Only the first 50 characters you enter are used in the comment. The
import/export utility displays 5 lines, 10 characters per line.
•If you want a quotation mark to appear in a comment, use two adjacent
quotation marks. (One of the quotation marks is considered a character in the
50–character limit.)
•
If you enter a back slash in an address comment, precede the back slash with a
tilde (∼).
ASCII Instruction Addresses
ASCII Address Comments
6-3
Page 82
APS Import/Export Utility User Manual
Preface
These are example address comments:
AC I:0.0/0“UPPER LOADER HYDRAULIC SOLENOID”
ACI:0.0/1“OUT OF TOLERANCE ALARM ACKNOWLEDGE”
ACI:0.0/2“AIR STOP CLOSED LIMIT SWITCH”
Keywords
ASCII Instruction AddressesASCII Address Comments
Placing Instruction Comments
An instruction comment is a text string (a maximum of 50 characters), which
provides notes or remarks for an address/instruction pair. The following rules apply
to instruction comments:
•Instruction comments should begin and end with quotation marks (“”), and
should follow the instruction/address pair on the same line.
•Do not use carriage returns. If you want a carriage return to appear in the
comment, use a back slash (\) in the comment to represent a carriage return.
(Note that this back slash is considered a character in the 50–character limit.)
•Only the first 50 characters you enter are used in the comment. The
import/export utility displays 5 lines, 10 characters per line.
•If you want a quotation mark to appear in your comment, use two adjacent
quotation marks. (One of the quotation marks is considered a character in the
50–character limit.)
•
If you enter a back slash in an instruction comment, precede the back slash with
a tilde (∼).
6-4
These are example instruction comments:
IC XICN7:10/0“Surge Tank High Level Alarm”
ICLBL3:LBL10“Label 10 in ladder file 3”
ICOTEO:6.1/10“North Cutter Running”
Keywords
ASCII Programming Instructions
ASCII Instruction Addresses
ASCII Instruction Comments
Page 83
Placing Rung Comments
A rung comment is a text string, (up to six lines long, 80 characters each), which
provides notes or remarks for an output instruction/address pair
help identify rungs. The following rules apply to rung comments:
•
Rung comments should follow the instruction/address pair on the same line.
Start rung comments with opening quotation marks (“) followed by a carriage
return and end with closing quotation marks (”).
•If you want a carriage return to appear in the comment, use a back slash (\).
(Note that this back slash is considered a character in the 80–character limit.)
•If you enter a quotation mark in the middle of a rung comment, use two
adjacent quotation marks. The initial and ending quotation marks are not
included in the comment. (One of the quotation mark is considered part of the
80–character limit.)
•If you enter a back slash in a rung comment, precede the back slash with a tilde
(∼).
The following are example rung comments:
ASCII Instruction Addresses
Creating an
ASCII Documentation File
. Rung comments
ASCII Programming Instructions
Keyword
RC OTEN7:10/0“(carriage return)
This is an example of a rung comment with quotation
marks and carriage returns at the beginning and end.
This comment is three lines long.”
RC JMP2:LBL5“(carriage return)
And here is an example of “ ” and\ a back slash (use the
~ to print a back slash) without a comment:
~\IPDS~\ATTACH~\SLC500. This comment is four lines
long.”
ASCII Rung Comment
6-5
Page 84
APS Import/Export Utility User Manual
Preface
Placing Symbols
A
symbol is a 10–character name associated with an address. IBM extended
characters can be used as part of symbols.
You start a symbol with a letter from A to Z. T
o complete the symbol, you can use
any combination of ASCII characters except 0x00 through 0x2F and 0x3A through
0x3F.
You can add comments anywhere in the ASCII documentation file. T
o add a single
line comment, place the comment after an exclamation mark (!). In this case, the
import utility ignores all text after the exclamation mark on that line.
You may also enter comments in the ASCII documentation file by inserting the
comment between two percent signs. (Tabs, carriage returns or spaces before and
after the percent signs are optional.) For example: % This is a comment %.
You may include one or more carriage returns in a comment.
Enter comments on a single line or several lines by themselves, or directly following
a complete ASCII command. If the import utility encounters a comment character
(% or !) between quotation marks, or a rung/instruction/address comment, it
considers the comment character as part of the rung/instruction/address comment.
The following example shows you how the import utility displays comments.
Notice that the comments used to document ASCII files only describe those files.
The import utility does not store these comments in the database.
!Begin import file comments with an exclamation
!mark. as you see here. You can document your A-B
!ASCII file as you would a program.
SYM I:1.1/8 PALLET !This is a comment after a complete line.
SYM %This is a comment% I:1.1/5 %This is another comment% HI_ALARM
%This is a comment that spans
multiple lines%
6-7
Page 86
APS Import/Export Utility User Manual
Preface
Example ASCII Documentation File
This example ASCII documentation file shows you how the import utility places
comments (address, instruction, and rung) and symbols on the APS ladder rung.
(The ASCII documentation files are grouped by keyword.)
!This is a sample of a complete ASCII documentation file.
SYM
O:3.1/8UPLOAD
O:5.2/3EMPTY_LITE
I:1.1/8PALLET
IC
XICN7:10/0“Surge Tank High Level Alarm”
XIOI:3.2/4“Selector Switch Panel W North Cutter”
OTEO:6.1/10“North Cutter Running”
PALLETUPLOAD
I:1.1
][
8
Surge Tank High
Level Alarm
N7:10
][
0
APS Ladder ProgramASCII Documentation File
Selector Switch
Panel W North Cutter
I:3.2
] / [
4
O:3.1
()
8
EMPTY_LITE
O:5.2
()
3
North Cutter
Running
O:6.1
()
10
AC
O:2.1/3“UPPER LOADER HYDRALIC SOLENOID”
I:3.2/6“OUT OF TOLERANCE ALARM ACKNOWLEDGE”
I:6.1/10“AIR STOP CLOSED LIMIT SWITCH”
RCOTE N7:10/0
“This sample rung comment is
two lines long.”
6-8
UPPER LOADER
HYDRALIC
SOLENOID
O:2.1
][
3
Rung 2.0
This sample rung comment is
two lines long.
AIR STOP CLOSED
LIMIT SWITCH
I:6.1
][
10
OUT OF TOLERANCE
ALARM
ACKNOWLEDGE
O:3.2
()
6
N7:10
()
0
Page 87
Programming Instruction References
A
Programming Instruction
References
This appendix lists all of the available programming instructions along with their
parameters, valid addressing modes, and file types.
A-1
Page 88
APS Import/Export Utility User Manual
Preface
Valid Addressing Modes and File Types
The following addressing modes are available:
Addressing ModeExample
DirectN7:0
Indexed Direct#N7:0
IndexedN7:[N10:3]
Indexed Indirect#N7:[N10:3]
The following file types are available:
•OOutput
•IInput
•SStatus
•BBinary
•TTimer
•CCounter
•RControl
•NInteger
•FFloat
•AASCII
•STString
•MM0/M1
•
Immediate – indicates that a constant is a valid file type
➀
➀
➀
➁
A-2
➀
Supported
➁
Not supported by MicroLogix 1000 controllers.
only by SLC 5/03 OS301, OS302 and SLC 5/04 OS400, OS401 processors.
Page 89
Programming Instruction References
InstructionDescriptionInstruction
Parameter
ABL
➀
ASCII Test Buffer for
channel0
Line
controldirectRnone
characters0-1024
ABS
➁
Absolute Valuesourcedirect, indexed direct
destinationdirect, indexed direct
ACB
➀
ASCII Number of
channel0
Characters in Buffer
controldirectRnone
characters0-1024
ACI
➀
ASCII String to Integersourcedirect, indirectSTnone
destinationdirect, indexed direct
ACL
➀
ASCII Clear Bufferchannel0
Valid Addressing
Mode(s)
indirect, indexed indirect
indirect, indexed indirect
indirect, indexed indirect
Valid File TypesImmediate
Values
O, I, S, B, T, C, R,
N, F, A, ST, M
O, I, S, B, T, C, R,
-32,768-32,767
fmin-fmax
none
N, F, A, ST, M
O, I, S, B, T, C, R,
none
N, A, ST, M
ACN
ACS
transmit buffer0=no or 1=yes
receive buffer0=no or 1=yes
➀
ASCII String
source Adirect, indirectSTnone
Concatenate
source Bdirect, indirectSTnone
destinationdirectSTnone
➁
Arc Cosinesourcedirect, indexed direct
indirect, indexed indirect
destinationdirect, indexed direct
indirect, indexed indirect
➀
Supported
➁
Supported only by SLC 5/03 OS302 and SLC 5/04 OS401 processors.
only by SLC 5/03 OS301, OS302 and SLC 5/04 OS400, OS401 processors.
O, I, S, B, T, C, R,
N, F, A, ST M
O, I, S, B, T, C, R,
N, F, A, ST, M
-32,768-32,767
fmin-fmax
none
A-3
Page 90
APS Import/Export Utility User Manual
Preface
InstructionDescriptionInstruction
Parameter
Valid Addressing
Mode(s)
ADDAddsource Adirect, indexed direct
indirect, indexed indirect
source Bdirect, indexed direct
indirect, indexed indirect
destinationdirect, indexed direct
indirect, indexed indirect
AEX
➀
ASCII String Extractsourcedirect, indirectSTnone
indexdirect, indexed direct
indirect, indexed indirect
numberdirect, indexed direct
indirect, indexed indirect
destinationdirectSTnone
AHL
➀
ASCII Set/Reset
channel0
Handshake Lines
AND maskdirect, indexed direct
indirect, indexed indirect
OR maskdirect, indexed direct
indirect, indexed indirect
Valid File TypesImmediate
Values
O, I, S, B, T, C, R,
N, F, A, ST, M
O, I, S, B, T, C, R,
N, F, A, ST, M
O, I, S, B, T, C, R,
-32,768-32,767
fmin-fmax
-32,768-32,767
fmin-fmax
none
N, F, A, ST, M
O, I, S, B, T, C, R,
1-82
N, A, ST, M
O, I, S, B, T, C, R,
1-82
N, A, ST, M
O, I, S, B, T, C, R,
0-FFFF
N, A, ST, M
O, I, S, B, T, C, R,
0-FFFF
N, A, ST, M
controldirectRnone
channel status0-001F
AIC
➀
ASCII Integer to Stringsourcedirect, indexed direct
indirect, indexed indirect
destinationdirectSTnone
ANDLogical ANDsource Adirect, indexed direct
indirect, indexed indirect
source Bdirect, indexed direct
indirect, indexed indirect
destinationdirect, indexed direct
indirect, indexed indirect
A-4
➀
Supported
only by SLC 5/03 OS301, OS302 and SLC 5/04 OS400, OS401 processors.