User manual
IEC61131 User and Reference Manual
April 22, 2008
24
Custom Function Reference section of this manual.
Configure PC to Controller Link
A communication link is used to connect the ISaGRAF debugger and the target SCADAPack
controller. The ISaGRAF debugger controls the downloading of applications to the target
controller and the starting and stopping of applications in the target controller. Refer to the
PC to Controller Link section of this manual for complete information.
For a serial communication link an RS-232 serial communication cable is required to connect
the PC serial port to any of the controller serial ports. The RS-232 communication ports on
the controller are 9-pin male D-sub-miniature connector (DE-9P) configured as Data
Terminal Equipment (DTE). Generally the RS-232 communication port on the PC will either
be a 9 pin or a 25 pin male connector configured as Data Terminal Equipment (DTE). A null
modem cable is required to connect two RS-232 DTE devices.
The communication link may be an Ethernet connection, wither directly connected or through
a Ethernet network. This type of communication link uses Modbus/TCP. Modbus/TCP is an
extension of serial Modbus, which defines how Modbus messages are encoded within and
transported over TCP/IP-based networks. Modbus/TCP is just as simple to implement and
flexible to apply as serial Modbus.
Controller Commands and Options
Controller commands are specific to the operation of SCADAPack controllers. Operating
parameters are configured using selected controller commands. Controller commands are
selected from the Controllers selection in the Tools menu of the Programs window. Refer
to the Controller Menu Commands section of this manual for information on the controller
commands available.
Controller parameters such as serial port settings, initialization, I/O error indication and
controller locking functions are configured using controller commands. Control of the
connection and disconnection of dialup modem communication links and reading and writing
parameters to the controller are also executed using controller commands.
Make the Application
Before an application may be downloaded to the target controller it must be compiled.
Compiling an ISaGRAF project is done using the Make Application command. Refer to
section A.13 Using the code generator of the ISaGRAF User‟s Guide for complete
information on the ISaGRAF compiler.
To make an application:
1. Select Compiler Options from the Make menu in the Programs window. The Compiler
Options dialog appears.
2. In the Targets: list, select ISA86M: TIC code for Intel. This is the target Independent
Code dedicated to ISaGRAF kernels installed on Intel based processors.
3. Select the appropriate compiler options for you project by clicking the square to the right
of the option in the Optimizer: section of the dialog.
4. If you wish to be able to upload the project from a controller select the Upload button
and then, in the Prepare project for upload dialog click the Embed source code for
upload option. Select the parameters you wish to upload in the Embed also: window.
Click the OK button to close the dialog.