Programacion PLC51
Programacion PLC51
5HOHDVH
Introduction This supplement describes how to configure and use 6200 programming
software with PLC-5/20C and PLC-5/40C processors on a
ControlNet network.
Contents
If You Want Information About: See:
i
Preface
Using This Supplement
Term: Definition:
Classic PLC-5 processors PLC-5/10, -5/12, -5/15, -5/25, and -5/VME processors
ControlNet network A communication architecture that allows the exchange of messages between Allen-Bradley
products and certified third-party products.
ControlNet PLC-5 processors PLC-5/20C and -5/40C processors.
ControlNet WHO update rate The fastest rate at which ControlNet WHO will update the screen (1 to 999 seconds).
discrete I/O data transfer Type of data transfer in which single units of I/O have discrete relationships with values in the
processor’s data table; uses the processor’s input- and output-image tables (I and O files);
configured on a per-node basis in the ControlNet I/O map table.
Enhanced PLC-5 processors PLC-5/11, -5/20, -5/30, -5/40, -5/40L, -5/60 , -5/60L, and -5/80 processors.
Important: Unless otherwise specified, Enhanced PLC-5 processors include ControlNet PLC-5,
Ethernet PLC-5, and VME PLC-5 processors.
Ethernet PLC-5 processors PLC-5/20E, -5/40E, and -5/80E processors.
frame Any single data transfer on the ControlNet link.
I/O map table A table you configure using 6200 programming software to map data from an I/O chassis and
other devices on ControlNet to particular processor data-table file addresses.
link A collection of nodes with unique addresses in a range from 1-99; links connected by bridges
make up a network.
maximum scheduled node Node with the highest network address that can use scheduled time on a ControlNet link.
maximum unscheduled node Node with the highest network address that can use unscheduled time on a ControlNet link.
network A series of nodes connected by some type of communication medium. The connection paths
between any pair of nodes can include repeaters, routers, bridges, and gateways.
network address A node’s address on the ControlNet network.
network update interval (NUI) A single occurrence of the ControlNet network update time (NUT).
network update time (NUT) The repetitive time interval in which data can be sent on the ControlNet network.
node A port of a physical device connecting to a network that requires a network address in order to
function on the network; a link may contain a maximum of 99 nodes.
non-discrete I/O data transfer Type of data transfer in which blocks of data transferred to or from I/O modules use integer input
and output data-table files that you specify; cannot use the processor’s input- and output-image
tables (I and O files); scheduled transfers are configured in the ControlNet I/O map table;
unscheduled transfers make use of ControlNet I/O Transfer (CIO) instructions.
owner Device that controls the outputs of an adapter.
redundant media Dual-cable system that allows you to receive the best of two signals over a ControlNet network.
repeater A two-port active physical-layer device that reconstructs and retransmits all traffic it hears on
one ControlNet segment to another segment.
scheduled bandwidth Bandwidth available for scheduled I/O transfers.
scheduled transfers Deterministic and repeatable transfers that are continuous and asynchronous to the ladder-logic
program scan.
unscheduled transfers Non-deterministic data transfers through ladder-initiated communication.
VME PLC-5 processors PLC-5/V30, -5/V40, -5/V40L, and -5/V80 processors.
ii
Preface
Using This Supplement
Related Publications Your PLC-5 programmable controller documentation is organized into manuals
according to the tasks you perform. This organization lets you easily find the
information you want without reading through information that is unrelated to
your current task. The arrow points to the supplement you are currently using.
HARDWARE SOFTWARE
Enhanced PLC-5 Processors: Classic and Enhanced PLC-5 Processors:
Enhanced PLC-5 Ethernet PLC-5 Software Configuration 1785 PLC-5
Programmable Programmable and Maintenance Programmable Controllers
Controllers Controllers Installing 6200 Quick Reference
Installation Instructions Installation Instructions programming software Quick access to switches,
Defining data table files status bits, indicators,
Handling the Enhanced Handling the Ethernet instructions, software screens
PLC-5 processor PLC-5 processor Configuring processor
Connecting a remote, Connecting a remote, Processor/channel status
extended local, and 1785-7.1
extended local, and Clearing faults
DH+ link DH+ link Printing reports
1785-2.38 1785-2.30 6200-6.4.6 Structured Text
User Manual
1785-6.6.1
iii
Preface
Using This Supplement
iv
Table of Contents
i
Table of Contents
ii
Chapter
1
Configuring the Programming Terminal for
ControlNet Online Communication
Chapter Objectives To program on line, you have to configure the communication interface
between your programming terminal and the ControlNet PLC-5 processor.
Use this chapter to configure 6200 programming software to use the one of
the following ControlNet communication interfaces to communicate with a
ControlNet PLC-5 processor.
To Configure: See:
1784-KTC page 1-2
Serial to KFC (ControlNet) page 1-5
Windows/DOS KTC (ControlNet) page 1-6
Important: You can also connect to the ControlNet PLC-5 processors over
DH+ for programming, but the ControlNet WHO status screens are
not available.
Configuring Online To configure online characteristics, follow the steps below:
Configuration [F2] +========================= PLC–5 PROGRAMMING SOFTWARE =========================+
| |
| A 6200 Series Software Product |
| |
6200 | += ONLINE CONFIGURATION ===================+ . |
| | | |
Main Menu | | F1 Network Access LOCAL | |
| | F2 Communication Port 1784–KT (DH+) | |
| | F3 Connection MULTI_DROP | |
| | F4 Terminal Address 77 | . |
| | F5 PLC Address 20 | |
Online | | F6 KT Address 011011 (D800) | |
Config | | F7 Local Bridge Addr 110 | |
| | F8 Remote Bridge Addr 376 | |
F2
| | F9 Save Configuration | |
| | F10 Terminal Name BUD | |
| | | |
+===============+====== ESC exits/ALT–U aborts changes ====+===================+
Press this key until you see the default Press this key to save your changes.
information for the device you want to
configure. The default device is the
1784-KT (DH+).
After you press [F9], the information you specify remains the same each time you start the software. If you want to
change the configuration information for this editing session only, press Esc after you specify the configuration
information. These changes remain active until you exit the software.
To toggle forward through the default options, press F2 – Comm Port.
TIP To toggle backward through the default options, press Alt-F2, Ctrl-F2,
or Shift-F2.
1-1
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
Configuring a 1784-KTC Use the 1784-KTC card to connect a ControlNet PLC-5 processor to a
ControlNet link for programming. To configure information for the
1784-KTC card, press [F2] – Communication Port from the online
Press [F2] – Comm Port until you
see the configuration screen for configuration screen until you see the 1784-KTC configuration screen.
the communication device you
want to use:
Important: If you want to run more than a single online session at one
1784-KT DH+
1784-KT DH+ Routing time, use the online configuration screen with Windows to configure the
1784-KT DHII 1784-KTC communication card (see page 1-6).
1784-KTC ControlNet
1784-KT2 DH+
1784-KT2 DH+ Routing
1784-KT2 DHII +========================= PLC–5 PROGRAMMING SOFTWARE =========================+
1784-KTK1 DH+ | |
1784-KTX/KTXD DH+ | A 6200 Series Software Product |
1784-KTXD Chan B DH+ | |
1784-KTX/KTXD DH+ Routing | += ONLINE CONFIGURATION ========================+. |
1784-KTXD Chan B DH+ Routing | | | |
1784-KTX/KTXD DHII | | | |
1784-KTXD Chan B DHII | | F2 Communication Port 1784–KTC (ControlNet) | |
1784-PCMK DH+ | | | |
1784-PCMK DH+ Routing | | F4 Terminal Node 63 | |
1784-PCMK DHII | | F5 PLC Node 6 | |
Serial to KFC ControlNet | | F6 KTC Address 001011 (D000) | |
Serial Port PLC, KE/KF | | | |
Serial Port DHII | | | |
VME Driver | | F9 Save Configuration | |
Windows DH+ | | F10 Terminal Name | |
Windows DH+ Routing | | | |
Windows/DOS KTC ControlNet +==============+== ESC exits/ALT–U aborts changes =============+===============+
Ethernet DH+, PI
1784-KL DH+ Press a function key
1784-KL DH+ Routing
1784-KL DHII
Comm Term PLC KTC Save Term
Port Node Node Address Config Name
F2 F4 F5 F6 F9 F10
Table 1.A describes the characteristics you can configure for a 1784-KTC
communication card on a ControlNet link.
Table 1.A
Configuration Characteristics for the 1784-KTC Using ControlNet
[F4] - Terminal Node Prompts you to enter the network address (1-107 decimal) of the ControlNet 1784-KTC
device you are communicating through.
[F5] - PLC Node Prompts you to enter the network address (1-99 decimal) of the ControlNet PLC-5
processor you want to monitor.
This is the network address that you set using the two 10-digit rotary switches on the
top of the ControlNet PLC-5 processor.
[F6] - KTC Address Prompts you to enter the address of the 1784-KTC card located in the
programming terminal.
This is the KTC address that you set using the base memory and base I/O space
switches on the 1784-KTC communication card (see pages 1-3 and 1-4).
[F9] - Save Configuration Saves the configuration you specified on this screen to your user configuration file.
Press [F9] to use this configuration each time you start the software.
[F10] - Terminal Name Prompts you to enter a name for the programming terminal. This name appears on the
WHO Active screen, which makes it easier to identify your terminal (instead of using
the terminal address).
1-2
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
Figure 1.1 shows where the address switches are located on the 1784-KTC
card. For more information on 1784-KTC addressing, see the ControlNet
Communication Interface Card Installation Instructions,
publication 1785-5.20.
Figure 1.1
Location of 1784-KTC Base Memory and Base I/O Space Switches
Front of Switches
Figure 1.2 shows valid KTC base memory addresses; Figure 1.3 shows
valid KTC base I/O space addresses.
Figure 1.2
Valid KTC Base Memory Addresses
C400 D400
100011 101011
switch pressed switch pressed
up (1) down (0)
C800 D800
Important: If you are using two KTC cards, select two 010011 011011
unique base memory addresses; two KTC cards
cannot share one base memory address.
CC00 DC00
110011 111011
1-3
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
Figure 1.3
Valid KTC Base I/O Space Addresses
base I/O space address
6200 software
200h 300h
potential device potential device
conflict: game port conflict: prototype
cards
220h 320h
switch pressed switch pressed factory-set address; potential device
up (1) down (0) preferred setting conflict: HDD
Important: If you are using two KTC cards, select a 240h 340h
unique base I/O space address for each KTC card;
two KTC cards cannot share one base I/O
space address.
260h 360h
280h 380h
potential device
conflict: SDLC
2A0h 3A0h
2C0h 3C0h
potential device
conflict: EGA
2E0h 3E0h
potential device
conflict: GPIB
Important: Keep the following in mind when you are using the
1784-KTC card:
If you are using two KTC cards, select a unique base memory address
for each KTC card; two KTC cards cannot share one base
memory address.
In addition, do not mix 8-bit and 16-bit cards within a 64K segment
boundary. For example, a KTC card and a KT card cannot be placed in
the same segment range of D000 – DFFF or C000 – CFFF. The 8-bit
card may not work in this setup. The two cards, KTC (16-bit) and KT
(8-bit), can be placed with one in the C000 – CFFF range and one in the
D000 – DFFF range.
If you are using two KTC cards, select a unique base I/O space address
for each KTC card; two KTC cards cannot share one base I/O
space address.
1-4
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
[F1] - Port Toggles between COM1 and COM2. The default is COM1.
[F3] - Baud Rate Toggles through 1200, 2400, 4800, 9600, and 19200 baud rates. The default is 2400 baud.
[F4] - Device Node Prompts you to enter the network address (1-99 decimal) of the ControlNet 1770-KFC device.
Important: Be sure that the device network address on the online configuration screen matches the
1770-KFC physical address. If these values do not match, 6200 programming software will not perform
an auto-configuration and you will be unable to go online.
[F5] - PLC Node Prompts you to enter the network address (1-99 decimal) of the ControlNet PLC-5 processor you want
to monitor.
This is the network address that you set using the two 10-digit rotary switches on the top of the
ControlNet PLC-5 processor.
[F6] - Parity Toggles through Even, Odd, and None. The default is None.
[F7] - Duplex Toggles between Full and Half. If you choose Full, the software automatically changes its
communication configuration parameters to match the setting in the communication module, regardless
of what is displayed on the Online Configuration screen. If you choose Half, make sure that the device
address matches the DIP switch settings in the communication interface module.
[F8] - Error Check Toggles between Block Check Character (BCC) and Cyclic Redundancy Check (CRC) error checking
procedures. The default is CRC.
[F9] - Save Configuration Saves the configuration you specified on this screen to your user configuration file. Press [F9] to use
this configuration each time you start the software.
[F10] - Modem Setup Lets you specify whether you want to use a modem. For more information about using a modem, see
chapter 6 in the Software Configuration and Maintenance manual, publication 6200-6.4.6.
1-5
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
Configuring Windows/DOS Use the online configuration screen with Windows to configure the
KTC (ControlNet) 1784-KTC communication card to run multiple sessions or set up multiple
communication card sessions with Windows. To configure information for
Press [F2] – Comm Port until you
see the configuration screen for Windows/DOS KTC (ControlNet), press [F2] – Communication Port
the communication device you
want to use:
until you see the Windows/DOS KTC (ControlNet) configuration screen.
1784-KT DH+
1784-KT DH+ Routing
Important: Configuring characteristics on this screen alone is not
1784-KT DHII enough to run 6200 programming software in Windows. For more
1784-KTC ControlNet
1784-KT2 DH+ information about running 6200 programming software in Windows, see
1784-KT2 DH+ Routing
1784-KT2 DHII
chapter 4 in the Software Configuration and Maintenance manual,
1784-KTK1 DH+ publication 6200-6.4.6.
1784-KTX/KTXD DH+
1784-KTXD Chan B DH+
1784-KTX/KTXD DH+ Routing Important: The selection of the multi-session driver is not required when
1784-KTXD Chan B DH+ Routing
1784-KTX/KTXD DHII running 6200 programming software in Windows; only use the
1784-KTXD Chan B DHII
1784-PCMK DH+ multi-session driver when you want to run more than a single online
1784-PCMK DH+ Routing session at one time. If you want to run a single online session, use the
1784-PCMK DHII
Serial to KFC ControlNet online configuration screen for the 1784-KTC communication card (see
Serial Port PLC, KE/KF
Serial Port DHII page 1-2).
VME Driver
Windows DH+
Windows DH+ Routing
Windows/DOS KTC ControlNet +========================= PLC–5 PROGRAMMING SOFTWARE =========================+
Ethernet DH+, PI | += ONLINE CONFIGURATION ============================================+ |
1784-KL DH+ | | | |
1784-KL DH+ Routing | | Network Access LOCAL | |
1784-KL DHII | | F2 Communication Port Windows/DOS KTC (ControlNet) | |
| | | |
| | F4 Terminal Node 6 | |
| | F5 PLC Node 6 | |
| | F6 Port ID 1 | |
| | | |
| | | |
| | F9 Save Configuration | |
| | F10 Terminal Name | |
| | IMPORTANT: To change the Device, Memory Location or Interrupt | |
| | Request, you must edit CFG_KT.INI. A sample CFG_KT.INI file is | |
| | located in your \ABIC\BIN directory. After completing the | |
| | edits, reboot your PC. | |
+====+== ESC exits/ALT–U aborts changes =================================+=====+
1-6
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
[F4] - Terminal Node Prompts you to enter the node address (1-107) of the ControlNet 1784-KTC device
you are communicating through.
[F5] - PLC Node Prompts you to enter the node address (1-99) of the ControlNet PLC-5 processor you
want to monitor.
This is the node address that you set using the two 10-digit rotary switches on the top
of the ControlNet PLC-5 processor.
[F6] - Port ID Prompts you to enter an identifier number (decimal 1-8) to associate with a particular
1784-KTC card specified in the CFG_KT.INI file. For example, Port ID 1 is [DTL_KT.1].
For more information on the configuring the CFG_KT.INI file, see “Editing the
CFG_KT.INI File” below.
[F9] - Save Configuration Saves the configuration you specified on this screen to your user configuration file.
Press [F9] to use this configuration each time you start the software.
[F10] - Terminal Name Prompts you to enter a name for the programming terminal. This name appears on the
ControlNet WHO Active screen, which makes it easier to identify your terminal (instead
of using the terminal address).
1-7
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
1-8
Chapter 1
Configuring the Programming Terminal
for ControlNet Online Communication
Figure 1.4
Example CFG_KT.INI File
[DTL_KT.1]
DEVICE=KT These commands configure one
MEMORY=D400 1784-KT.
IRQ=5
;[DTL_KT.1]
;DEVICE=KT2 These commands are comments – they
;MEMORY=D400 configure a 1784-KT2.
;IRQ=9
;[DTL_KT.1]
;DEVICE=KL These commands are comments – they
;MEMORY=E000 configure a 1784-KL.
;IRQ=2
;[DTL_KT.2]
;DEVICE=KTX These commands are comments – they
;MEMORY=CC00 configure a 1784-KTX.
;IRQ=5
;[DTL_KT.1]
;DEVICE=PCMK These commands are comments – they
;MEMORY=CF00 configure a 1784-PCMK.
;IRQ=5;
;[DTL_KT.3]
;DEVICE=KTC
;MEMORY=D000 These commands are comments – they
;IOBASE=200 configure a 1784-KTC.
;IRQ=3
;STATION=31;
1-9
Chapter
2
Using ControlNet Communication
Chapter Objectives With 6200 programming software, you can see what devices are on your
ControlNet link. This chapter explains ControlNet network communication and
how to see what devices are attached to the ControlNet link.
Understanding ControlNet The following figure shows example ControlNet networks (without and with
Communication redundant media). For more information, see the ControlNet PLC-5
Programmable Controllers User Manual, publication 1785-6.5.14, or the
ControlNet Cable System Planning and Installation Manual, publication
1786-6.2.1.
Personal Computer or Personal Computer with 1784-KTCx Personal Computer with 1784-KTC
Other Serial/Parallel Device and ControlView Card and ControlView Card and ControlView or 6200
or 6200 Programming Software and 6200 Programming Software Programming Software
PLC-5/40C Controlling
Processor
PLC-5/40C Controlling
Processor
Using ControlNet WHO To access ControlNet WHO, follow the steps on the left:
Important: When you view the ControlNet WHO screens while the ControlNet
system is operating, you affect the performance of unscheduled I/O operations.
Using the ControlNet The ControlNet WHO ACTIVE – Active Node Identification screen displays
WHO ACTIVE – Active Node the active nodes up to the value of the Maximum Unscheduled Nodes.
Identification Screen
Important: The Maximum Unscheduled Node is set to a value of the
Maximum Scheduled Node (configured on the ControlNet Node Information
Channel 2 Configuration screen) plus eight (8). If your node address is higher
than the Maximum Unscheduled Node, you will not be able to connect to the
ControlNet network and use ControlNet WHO.
Important: The ControlNet WHO screens are only available when the
programming device is communicating through a 1784-KTC communication
card, a 1784-KTCx communication card, or a 1770-KFC serial/parallel interface
on the ControlNet network.
2-2
Chapter 2
Using ControlNet Communication
Net Channel A Status: Cable Good Net Channel B Status: Cable Inactive
Online Node Channel Network Save Who
Program Diags Diags Diags Config Rate
F1 F2 F5 F6 F9 F10
Attach to the highlighted ControlNet PLC-5 processor node [F1] - Online Program
Display the ControlNet WHO ACTIVE – Active Node Status screen [F2] - Node Diagnostics
Display the ControlNet WHO ACTIVE – Channel Status screen [F5] - Channel Diagnostics
Display the ControlNet WHO ACTIVE – Network Status screen [F6] - Network Diagnostics
Save all current communication configuration parameters (including the [F9] - Save Configuration
ControlNet WHO update rate) as the permanent ControlNet
WHO configuration
Enter a new ControlNet WHO update rate (1 to 999 seconds) [F10] - Who Rate
Return to the ControlNet WHO screen [Esc]
2-3
Chapter 2
Using ControlNet Communication
Using the ControlNet WHO The ControlNet WHO ACTIVE – Active Node Status screen resembles the
ACTIVE – Active Node ControlNet Channel 2 Status screen. To display the ControlNet WHO ACTIVE
Status Screen – Active Node Status screen, follow the steps on the left.
Important: The ControlNet WHO screens are only available when the
programming device is communicating through a 1784-KTC communication
card, a 1784-KTCx communication card, or a 1770-KFC serial/parallel interface
on the ControlNet network.
Clear all of the diagnostic counters for this ControlNet node [F2] - Clear Counter
Toggle between Unlock Counter/Lock Counter [F3] - Unlock Counter
Save all current communication configuration parameters (including [F9] - Save Configuration
the ControlNet WHO update rate) as the permanent ControlNet
WHO configuration
Enter a new ControlNet WHO update rate (1 to 999 seconds) [F10] - Who Rate
Return to the ControlNet WHO ACTIVE – Active Node Status screen [Esc]
For descriptions of the status fields on the ControlNet WHO ACTIVE – Active
Node Status screen, see chapter 5.
2-4
Chapter 2
Using ControlNet Communication
Using the ControlNet To display the ControlNet WHO ACTIVE – Channel Status screen, follow the
WHO ACTIVE – Channel steps on the left.
Status Screen Important: The ControlNet WHO screens are only available when the
programming device is communicating through a 1784-KTC communication
card, a 1784-KTCx communication card, or a 1770-KFC serial/parallel interface
on the ControlNet network.
+–– ControlNet WHO ACTIVE – Channel Status ––––––––––––––––––––––––––––––––––––+
6200 | Node Active Channel A Channel B Bad frame received from node number |
| Channel Status Status most recent to least recent |
Main Menu
|––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––|
| 01 A Good Inactive |
| 02 A Good Inactive |
| 03 A Good Inactive |
Who | 04 A Good Inactive |
| 05 |
F5
| 06 |
| 07 |
| 08 |
| 09 |
Who Active | 10 |
| 11 |
F5 | 12 |
+––– ESC exits ––[ WHO rate = 4 sec ]––––[ Maximum Unscheduled Nodes = 15 ]––––+
Display the ControlNet WHO ACTIVE – Network Status screen [F6] - Network Diags
Save all current communication configuration parameters (including [F9] - Save Configuration
the ControlNet WHO update rate) as the permanent ControlNet
WHO configuration
Enter a new ControlNet WHO update rate (1 to 999 seconds) [F10] - Who Rate
Return to the ControlNet WHO ACTIVE – Active Node [Esc]
Identification screen
2-5
Chapter 2
Using ControlNet Communication
Table 2.A describes the fields that appear on the ControlNet WHO ACTIVE –
Network Status screen.
Table 2.A
ControlNet WHO ACTIVE – Channel Status Screen Fields
This Field: Specifies:
Node the network address on the ControlNet link.
Active Channel the channel that the node is using when the ControlNet WHO active channel status screen
is displayed.
Channel A Status the status of channel A.
• Good – channel A is receiving usable frames only.
• WARNING – channel A is receiving a low level of unusable frames.
• FAULTED – channel A is receiving a high level of unusable frames; channel is not usable.
• Inactive – channel A is not currently active.
Channel B Status the status of channel B.
• Good – channel B is receiving usable frames only.
• WARNING – channel B is receiving a low level of unusable frames.
• FAULTED – channel B is receiving a high level of unusable frames; channel is not usable.
• Inactive – channel B is not currently active.
Bad frame received a log of the last eight nodes from which bad frames were received.
from node number
2-6
Chapter 2
Using ControlNet Communication
Using the ControlNet To display the ControlNet WHO ACTIVE – Network Status screen, follow the
WHO ACTIVE – Network steps on the left.
Status Screen Important: The ControlNet WHO screens are only available when the
programming device is communicating through a 1784-KTC communication
card, a 1784-KTCx communication card, or a 1770-KFC serial/parallel interface
on the ControlNet network.
+–– ControlNet WHO ACTIVE – Network Status ––––––––––––––––––––––––––––––––––––+
| Total Errors Good Frames Bad Frames Errors/100,000 Frames |
| Node # Chan A Chan B Received Received Chan A Chan B |
6200 |––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––|
Main Menu | 01 0 0 0 0 0 0 |
| 02 0 0 0 0 0 0 |
| 03 0 0 0 0 0 0 |
| 04 0 0 0 0 0 0 |
Who | 05 |
| 06 |
F5 | 07 |
| 08 |
| 09 |
| 10 |
| 11 |
Who Active | 12 |
+––– ESC exits ––[ WHO rate = 4 sec ]––––[ Maximum Unscheduled Nodes = 15 ]––––+
F5
Network Diags Net Channel A Status: Cable Inactive Net Channel B Status: Cable Inactive
Channel Save Who
F6 Diags Config Rate
F5 F9 F10
Go to the ControlNet WHO ACTIVE – Channel Status screen [F5] - Channel Diags
Save all current communication configuration parameters (including [F9] - Save Configuration
the ControlNet WHO update rate) as the permanent ControlNet
WHO configuration
Enter a new ControlNet WHO update rate (1 to 999 seconds) [F10] - Who Rate
Return to the ControlNet WHO ACTIVE – Active Node [Esc]
Identification screen
2-7
Chapter 2
Using ControlNet Communication
Table 2.B describes the fields that appear on the ControlNet WHO ACTIVE –
Network Status screen.
Table 2.B
ControlNet WHO ACTIVE – Network Status Screen Fields
This Field: Specifies:
2-8
Chapter
3
Configuring ControlNet PLC-5
Processor Channels
Chapter Objectives This chapter explains the channel options that are available and
how to configure Channel 2 for ControlNet communications. Use
the channel configuration screens to configure ControlNet PLC-5
processor communications.
Configuring Channels Table 3.A shows the channels you can configure for ControlNet PLC-5
processors; Table 3.B explains your configuration options for
each channel.
Table 3.A
Channels You Can Configure for ControlNet PLC-5 Processors
Processor: Channel 0: Channel 1A: Channel 1B: Channel 2A: Channel 2B: Channel 2:
Table 3.B
Channel Configuration Options
3-1
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
a channel diagnostic file, which is used to view channel status data (the
software automatically creates this file for you when you specify
the file)
Do not assign a diagnostic file that is the I/O status file you
assigned, or any other used integer file. Unpredictable machine
operation can result.
Important: You can only change the configuration information for one
channel at a time. Once you change the information for a channel you must
accept the configuration before changing the configuration for another
channel.
3-2
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Accessing the Channel Use the Channel Overview screen to define a channel’s function. To
Overview Screen display the Channel Overview screen, follow the steps on the left.
Channel
Overview
F4
3-3
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Cursor to channel 2
Press a function key, page up or page down, or enter a node. number.
Channel >
Config Rem Prog Forces:None 5/40C File JOSHUA
Map Node Define Chan 2
F5 Monitor Edit Lcl Rack Status
F2 F4 F7 F9
Display the ControlNet I/O Mapping Channel 2 Configuration [F2] - Map Monitor
(Monitor) Screen
Display the ControlNet Node Information Channel 2 Configuration [F4] - Node Edit
(Edit) Screen
Display the ControlNet Local Rack Characteristics Screen (off line only) [F7] - Define Local Rack
Display the ControlNet Channel 2 Status Screen [F9] - Channel 2 Status
Display the Channel Overview Screen [Esc]
Ladder Editor To select the number of slots in the local chassis and the addressing mode
Main Menu from the ControlNet Local Rack Characteristics screen, follow the steps on
the left.
General
ControlNet – Node Info MONITOR
Utility Channel 2 Configuration NODE ––
F7
Diagnostics file: 0 Network Update Time(ms): 5
Coax Repeaters in Series: 0 Scheduled Bandwidth Usage: 0%
Fiber Repeater Pai A Only
Local Rack Characteristics 0
Channel (for reserving I/O image space)
Overview
Node Node Type Select number Select addressing
F4 of slots: mode:
F3 4 Slots F8 2–slot
F4 8 Slots F9 1–slot
F5 12 Slots F10 1/2–slot
Cursor to channel 2
F6 16 Slots
Channel
Config Press a function key, or ESC to exit.
>
F5 Rem Prog Forces:None 5/40C File JOSHUA
Accept 4 8 12 16 2– 1– 1/2–
Edits Slots Slots Slots Slots Slot Slot Slot
F1 F3 F4 F5 F6 F8 F9 F10
Define Map Map Node Map
Lcl Rack or Monitor or Monitor or Edit or Monitor
F7 F2 F2 F4 F2
3-5
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Important: When you are entering a Channel 2 edit screen for the first
time only, you must also press [F1] – Accept Edits and enter the
node number of the configured ControlNet PLC-5 processor on this screen:
Ladder Editor When you have specified the number of slots in the local chassis, the
Main Menu addressing mode, and the node number of the configured ControlNet
PLC-5 processor (when you are entering a Channel 2 edit screen for the
General
first time only), follow the steps on the left to display the ControlNet Node
Utility Information Channel 2 Configuration (Edit) screen.
F7
Channel
Config
F5
3-6
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Diagnostic file the file containing the channel’s Cursor to the field, enter an integer file number (N3–N999), and press [Enter].
status information The system creates an integer file 40 words long.
Attention: Assign a unique diagnostic file to each channel. Do not assign a
diagnostic file that is the I/O status file you assigned or any other used integer file.
Unpredictable machine operation can result.
Important: You must define a diagnostics file for a channel configured for anything
but unused (even if you are not using the channel) if you want to get status
information for that channel.
Coax Repeaters the number of coax repeaters Cursor to the field and enter a number (0–5) or press [F10] - Select Option to select
in Series in series a value, and press [Enter]. The default is 0.
Fiber Repeater the number of fiber repeater Cursor to the field and enter a number (0–2) or press [F10] - Select Option to select
Pairs pairs in series on the a value, and press [Enter]. The default is 0.
ControlNet network Important: Fiber repeaters must always exist in pairs; entering a value of 1 would
specify 2 fiber repeaters.
Pair #x Length the length of the fiber When the value of the Fiber Repeater Pairs field is 0, no Pair #x length fields or prompts
repeater pairs in series used on will be displayed. When the value of the Fiber Repeater Pairs field is 1, the Pair #1 length
the ControlNet network field will be displayed. When the value of the Fiber Repeater Pairs field is 2, the Pair #2
length field will be displayed.
If the value of the Fiber Repeater Pairs field is 1 or 2, cursor to the field and enter
a number (100–4000 meters).
Important: Any number will be rounded to the next higher 100 meter value.
3-7
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Network Update the repetitive time interval in Cursor to the field, and enter a number in milliseconds (2–100 ms).
Time (NUT) which data can be sent on the The default is 5 ms.
ControlNet network
Scheduled the amount of the available Calculated by 6200 programming software.
Bandwidth Usage scheduled bandwidth used for The percent of Scheduled Bandwidth Usage changes depending on the
the network network configuration.
Media the redundancy characteristic for Cursor to the field and press [F10] - Select Option to toggle among A/B, A only,
Redundancy the ControlNet channel and B only and press [Enter].
Usage Important: If any device on the ControlNet network is non-redundant, you must
select A only.
Maximum the maximum node that sends Cursor to the field and enter a number (1–99), and press [Enter].
Scheduled Node I/O during the network Important: This field must be set to the highest node number on the network which
update interval needs to transmit in the scheduled time.
You can configure nodes connected to a ControlNet link by using the following fields:
Node network address on the Press [F3] - Move Entry, [F4] - Copy Entry, or [F7] - Insert To List and enter a
ControlNet link network address (1–99); press [Enter].
Important: Keep the following in mind when you configure the Node field:
• To go directly to a particular node, enter node. on the command line and press
[Enter]. For example, if you enter 3., the cursor moves to node 3.
• To insert a range of nodes, press [F7] - Insert to List and enter node–node (low
to high) on the command line; press [Enter]. For example, if you enter 2–4,
nodes 2 through 4 are inserted.
Node Type the node type Cursor to the field and press [F10] - Select Option to toggle through the valid
selections (1771-ACN, 1771-ACNR, 1794-ACN, PLC-5/20C, PLC-5/40C, 1784-KTC,
and 1770-KFC).
Important: Keep the following in mind when you configure the Node Type field:
• On the command line, you may also enter enough of the node type string to
uniquely identify the desired node type and press [Enter].
• If you attempt to toggle this field on the processor that is currently being
configured, an error message will be displayed.
Series/Revision the series and revision of Calculated by 6200 programming software; the default value will be the latest series
the node and revision of the node type selected.
Important: If you press [F5] - Auto Network, 6200 programming software displays
the actual series/revision of the node type selected.
You can toggle to other valid series and revisions by pressing [F10] - Select Option.
Status the status of the node Cursor to the field and toggle between Active or Inactive by pressing
[F10] - Select Option. Selecting Active specifies the node as a
working/communicating node on the ControlNet network (the ControlNet PLC-5
processor should attempt to establish I/O connections with this node); selecting
Inactive specifies that the node is not actually connected to the network, though
configuration and mapping for the node is included in the computation of the network
update time, etc. (the ControlNet PLC-5 processor should not attempt to establish
I/O connections with this node).
Important: If you attempt to toggle this field on the processor that is currently being
configured, an error message is displayed.
3-8
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Node Mod/Msg Type Act Net Pckt Input Output Status Config
S/M Time(ms) File Size File Size Offset File Size
Map Monitor 1 PLC–5/40C n/a n/a n/a n/a n/a n/a n/a
1 Peer Out To 3 5 n/a n/a N36:0 24 0 n/a n/a
F2
2 1771–ACN 5 I:010 8 O:010 8 3 n/a n/a
6 1771–IFE/A 10 N34:0 20 n/a n/a 6 N38:0 37
7 1771–OFE/A 10 N34:20 5 N36:4 5 9 N36:64 13
3 PLC–5/20C n/a n/a n/a n/a n/a n/a n/a
1 Peer In 5 N34:25 24 n/a n/a 15 n/a n/a
3-9
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Ladder Editor To display the ControlNet I/O Mapping Configuration (Edit) screen, follow
Main Menu Channel the steps on the left.
Config
F5
Important: The ControlNet I/O Mapping Channel 2 Configuration is
General displayed on two separate screens:
Utility
F7 ControlNet I/O Mapping Channel 2 Configuration ControlNet I/O Mapping Channel 2 Configuration
Map Monitor (Monitor) Screen: (Edit) Screen:
F2
contains the Actual Network Packet Time (ms) field contains the Expected Network Packet Time
Channel (ms) field
Overview
displays I/O mapping information allows you to enter I/O mapping information for
F4 Map Edit the nodes
F4
The Monitor and Edit screens allow other users to view I/O mapping
Cursor to channel 2 information while a single user edits the I/O mapping information for a
ControlNet PLC-5 processor.
ControlNet – I/O Mapping EDIT
Channel 2 Configuration NODE 1
[F3] - Message Display display message information Node Mod/Msg Type Exp Net Pckt Input Output Status Config
only S/M Time(ms) File Size File Size Offset File Size
1 PLC–5/40C n/a n/a n/a n/a n/a n/a n/a
[F4] - Slot/Message display both slot and message 1 Peer Out To 3 5 n/a n/a N36:0 24 0 n/a n/a
information 2 1771–ACN 5 I:010 8 O:010 8 3 n/a n/a
6 1771–IFE/A 10 N34:0 20 n/a n/a 6 N38:0 37
After You Press [F5] - Auto Mapping: 7 1771–OFE/A 10 N34:20 5 N36:4 5 9 N36:64 13
Press: To: 3 PLC–5/20C n/a n/a n/a n/a n/a n/a n/a
[F2] - Select All select all I/O modules not mapped 1 Peer In 5 N34:25 24 n/a n/a 15 n/a n/a
3-10
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Table 3.D describes the fields on the ControlNet I/O Mapping Channel 2
Configuration (Monitor and Edit) screens.
Table 3.D
ControlNet I/O Mapping Channel 2 Configuration
(Monitor and Edit) Screen Fields
This Field: Specifies: Configure by Doing the Following:
Status File the file which stores the Cursor to the field and enter an integer file number (N3–N999), and press [Enter].
scheduled I/O connection status
in the map table
Data Input File the file which stores input data for Cursor to the field and enter an integer file number (N3–N999), and press [Enter].
entries in the map table (peer to Important: Entering a value of zero undefines the Data Input File.
peer, analog I/O, or intelligent
module communication)
Data Output File the file which stores output data Cursor to the field and enter an integer file number (N3–N999), and press [Enter].
for entries in the map table (peer Important: Entering a value of zero undefines the Data Output File.
to peer, analog I/O, or intelligent
module communication)
Default Config File the file which stores configuration Cursor to the field and enter an integer file number (N3–N999), and press [Enter].
information for entries in the map Important: Keep the following in mind when you configure the Default Config File field:
table when the auto I/O mapping
feature is used • Entering a value of zero undefines the Default Config File.
• Some non-discrete output modules require the configuration data to be included
with the actual output data. In those cases, the data output file is also used as the
configuration file.
• If you press [F5] - Auto Mapping before you have configured this file, an error message
appears prompting you to enter a value.
Network Update the repetitive time interval in Cursor to the field, and enter a number in milliseconds (2–100 ms).
Time (NUT) which data can be sent on the The default is 5 ms.
ControlNet network
Scheduled BW(%) the amount of the available Calculated by 6200 programming software.
scheduled bandwidth used for This is a read-only field.
the network
Map Entries the number of scheduled map Calculated by 6200 programming software.
entries between the processor This is a read-only field.
and other nodes
PLC BW (%) the percentage of bandwidth Calculated by 6200 programming software.
used for the ControlNet PLC-5 This is a read-only field.
processor you are using
DIF (%) the percentage of the Data Input Calculated by 6200 programming software.
File currently being used This is a read-only field.
DOF (%) the percentage of the Data Calculated by 6200 programming software.
Output File currently being used This is a read-only field.
3-11
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Node the network address Important: Keep the following in mind when you configure the Node field:
• To go directly to a particular node, enter node. on the command line and press [Enter].
For example, if you enter 3., the cursor moves to node 3.
• You cannot add nodes on the ControlNet I/O Mapping Channel 2 Configuration (Edit)
Screen. Node changes must be made on the ControlNet Node Information Channel 2
Configuration (Edit) Screen only.
Slot/Message slot/message information on the Available when the I/O mapping display characteristics are configured to display
(S/M) ControlNet link slot/message information only.
Press [F7] - Insert to List and enter a new slot/message number on the command line, and
press [Enter].
Important: Keep the following in mind when you configure the Slot/Message field:
• To go directly to a particular node slot/message destination, enter
node.slot/message on the command line and press [Enter]. For example, if you
enter 3.1, the cursor moves to node 3, slot/message 1.
• To insert a range of slots, press [F7] - Insert to List and enter slot–slot (low to high)
when the node to be added to is highlighted or enter node.slot–slot (low to high)
when the node to be added to is not highlighted.
• To insert a range of messages, press [F7] - Insert to List and enter
message–message (low to high) when the node to be added to is highlighted or enter
node.message–message (low to high) when the node to be added to is
not highlighted.
Slot slot information on the Available when the I/O mapping display characteristics are configured to display slot or
ControlNet link slot/message information.
Press [F7] - Insert to List and enter a new slot number on the command line, and press
[Enter].
Important: Keep the following in mind when you configure the Slot field:
• To go directly to a particular node/slot destination, enter node.slot on the command
line and press [Enter]. For example, if you enter 3.1, the cursor moves to node 3, slot 1.
• To insert a range of slots, press [F7] - Insert to List and enter slot–slot (low to high)
when the node to be added to is highlighted or enter node.slot–slot (low to high)
when the node to be added to is not highlighted.
Message (Msg) message information on the Available when the I/O mapping display characteristics are configured to display message
ControlNet link or slot/message information.
Press [F7] - Insert to List and enter a new message number on the command line, and
press [Enter].
Important: To go directly to a particular node/message destination, enter node.message
on the command line and press [Enter]. For example, if you enter 3.1, the cursor moves to
node 3, message 1.
Module/Message the module/message type Available when the I/O mapping display characteristics are configured to display
(Mod/Msg) Type slot/message information only.
When this field is highlighted, press [F10] - Select Option to toggle through
the valid selections, and press [Enter]. Valid values are dependent on the
module/message type.
Important: Keep the following in mind when you configure the Module/Message Type field:
• Only the analog modules can be edited in this field.
• On the command line, you may also enter enough of the module/message type string to
uniquely identify the module/message type and press [Enter].
3-12
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Module Type the module type Available when the I/O mapping display characteristics are configured to display slot or
slot/message information.
When this field is highlighted, press [F10] - Select Option to toggle through the valid
selections, and press [Enter]. Valid values are dependent on the module type.
Important: Keep the following in mind when you configure the Module Type field:
• Only the analog modules can be edited in this field.
• On the command line, you may also enter enough of the module type string to uniquely
identify the module type and press [Enter].
Message Type the message type Available when the I/O mapping display characteristics are configured to display message
or slot/message information.
When this field is highlighted, press [F10] - Select Option to toggle through the valid
selections, and press [Enter]. Valid values are dependent on the message type.
Important: On the command line, you may also enter enough of the message type string to
uniquely identify the message type and press [Enter].
Actual Network the actual network packet time for Available on the ControlNet I/O Mapping Configuration (Monitor) screen only.
Packet Time (ms) each node type and module This is a read-only field.
Important: The Actual Net Packet Time is dependent upon the number of rates supported
by the node and is calculated by 6200 programming software.
Expected Network the expected network packet time Available on the ControlNet I/O Mapping Configuration (Edit) screen only.
Packet Time (ms) for each node type and module Cursor to the field and enter a value between the Network Update Time and 15,000;
press [Enter].
Important: The Actual Net Packet Time will be less than or equal to the Expected Net
Packet Time.
Input File/Size the destination file for information A default size is set by 6200 programming software; sizes can be adjusted depending upon
received from an I/O module and the module.
the amount of information If the module type is digital, “I:” is displayed; enter an input file offset (0–037 for a
received from an I/O module PLC-5/20C processor; 0–177 for a PLC-5/40C processor). If the module type is analog or
peer-to-peer, the data input file (N3–N999) is displayed and can only be changed in the data
input file.
Important: This field is valid only for the following module types: 1771-ACN, 1771-ACNR,
1794-ACN, and Peer In To.
Output File/Size the source file for information A default size is set by 6200 programming software; sizes can be adjusted depending upon
sent to an I/O module and the the module.
amount of information sent to an If the module type is digital, “O:” is displayed; enter an output file offset (0–037 for a
I/O module PLC-5/20C processor; 0–177 for a PLC-5/40C processor). If the module type is analog or
peer-to-peer, the data output file (N3–N999) is displayed and can only be changed in the
data output file.
Important: This field is valid only for the following module types: 1771-ACN, 1771-ACNR,
1794-ACN, and Peer Out To.
Status Offset the offset into the status file that Calculated by 6200 programming software.
contains the status information of
the connection
Config File/Size the file for storing the I/O Cursor to the file and enter an integer file number (N3–N999) and the configuration size
configuration needed for a information (valid values are dependent on the module type); press [Enter].
module and the size of the file Important: Keep the following in mind when you configure the Config File/Size field:
needed to store the I/O
configuration for the module • This field is valid only for the 1771 and 1794 analog and intelligent modules.
• For the 1771 analog and intelligent modules, the configuration and output addresses
must be the same; for the 1794 analog and intelligent modules, the configuration and
output addresses must not be the same and are associated with the node.
3-13
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Channel
Config Press a function key, page up or page down, or enter a node.s/m number.
>
F5
Rem Prog Forces:None Display:Slot/Message 5/40C File JOSHUA
Map Select Node View Monitor I/O Monitor
Edit Display Monitor Times Status Monitor Actions
F2 F3 F4 F5 F6 F8 F9
Map Monitor
F2
To: Press this Key:
Display the ControlNet I/O Mapping Channel 2 Configuration (Edit) Screen [F2] - Map Edit
View Times Select I/O mapping display characteristics [F3] - Select Display
F5 Display the Node Information Channel 2 Configuration (Monitor) Screen [F4] - Node Monitor
3-14
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Ladder Editor To display the ControlNet Map Entries Status screen, follow the steps on
Main Menu the left.
Table 3.E describes the fields on the ControlNet Map Entries Status screen.
Monitor Important: See Table 3.D for more information on the Status File, Data
Status Input File, Data Output File, Default Config File, Network Update Rate,
F6 Scheduled BW (%), Map Entries, PLC BW (%), DIF (%), DOF (%), Node,
Slot/Message, and Module/Message Type fields.
Table 3.E
ControlNet Map Entries Status Screen Fields
This Field: Specifies: Configure by Doing the Following:
Status the status of the connection or node This is a read-only field.
specific status from the I/O module For a list of errors that may be displayed and possible corrective actions, see Appendix B.
Status Offset the offset into the status file which This is a read-only field.
stores the status of the connection
between the processor and the
node/module.
Data Valid whether the data associated with a This is a read-only field.
connection is valid or invalid For all connections (except 1794 Flex I/O), one of the following is displayed:
• YES indicates the data for the slot is valid.
• NO indicates the data for the slot is invalid.
For 1794 Flex I/O, one of the following characters is displayed for each flex slot:
• Y indicates the data for the slot is valid.
• N indicates the data for the slot is invalid.
• x indicates the slot is not configured.
For example, YYxNNxYx indicates that the data for slots 0, 1 and 6 is valid; the data for
slots 3 and 4 is invalid; and slots 2, 5 and 7 are not configured.
3-15
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Ladder Editor To display the ControlNet I/O Action Channel 2 Configuration (Monitor)
Main Menu screen, follow the steps on the left.
Cursor to a
1794-ACN module
To: Press this Key:
Monitor Display the ControlNet I/O Mapping Channel 2 Configuration [F2] - Map Monitor
Actions (Monitor) Screen
F9 Display the ControlNet Local Rack Characteristics Screen (off line only) [F7] - Define Local Rack
Display the ControlNet I/O Action Channel 2 Configuration (Edit) Screen [F9] - Edit Actions 1
1 If the display mode of the ControlNet I/O Mapping Channel 2 Configuration (Monitor and Edit) screens is set to Message only, the
[F9] - Edit Actions key will not appear.
3-16
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Ladder Editor To display the ControlNet I/O Action Channel 2 Configuration (Edit)
Main Menu screen, follow the steps on the left.
F5
Edit Edit
Actions Actions
F9 F9
3-17
Chapter 3
Configuring ControlNet PLC-5 Processor Channels
Table 3.F describes the fields on the ControlNet I/O Action Channel 2
Configuration (Monitor and Edit) screens.
Table 3.F
ControlNet I/O Action Channel 2 Configuration
(Monitor and Edit) Screens
This Field: Specifies: Configure by Doing the Following:
Slot the slot of the 1794 chassis This is a read-only field.
occupied by a particular module
Module Type the module type This is a read-only field.
Fault Action the action the module should take Cursor to the field and press [F10] - Toggle Entry to toggle the cursored module or press
when it faults [F8] - Toggle All to toggle the entire Fault Action field. Toggle among the following:
• Reset changes the outputs to a value of zero.
• Hold Last maintains the current output value.
• Safe sets the output to the user-specified fail-safe data.
Idle Action the action the module should take Cursor to the field and press [F10] - Toggle Entry to toggle the cursored module or press
when the connection is idle [F8] - Toggle All to toggle the entire Idle Action field. Toggle among the following:
• Reset changes the outputs to a value of zero.
• Hold Last maintains the current output value.
• Safe sets the output to the user-specified fail-safe data.
Fault Action the action the module should take Cursor to the field and press [F10] - Toggle Entry to toggle the cursored module or press
From Idle after faulting from idle [F8] - Toggle All to toggle the entire Fault Action From Idle field. Toggle among the following:
• Idle specifies the use of the idle action when the fault occurs in idle.
• Fault specifies the use of the fault action when the fault occurs in idle.
3-18
Chapter
4
ControlNet Programming Instructions
Chapter Objectives This chapter contains information on using the following instructions:
ControlNet I/O Transfer (CIO)
Message (MSG)
Immediate Data Input (IDI) and Immediate Data Output (IDO)
For more information on the instruction set for programming PLC-5
processors, see the Enhanced and Ethernet PLC-5 Programmable
Controllers User Manual, publication 1785-6.5.12, and the Instruction Set
Reference manual, publication 6200-6.4.11.
ControlNet I/O Transfer Using the CIO instruction, you can perform ladder-initiated unscheduled
(CIO) Instruction transfers (up to 64 elements) to I/O modules (typically analog or
intelligent) on a ControlNet network. For more information on ControlNet
CIO
CNET I/O TRANSFER ( EN ) I/O operations, see the ControlNet PLC-5 Programmable Controllers User
Control Block CT21:50
( DN ) Manual, publication 1785-6.5.14.
( ER )
When the input conditions go from false to true, data is transferred
according to the instruction parameters you set when entering the
CIO instruction.
After you enter the control block address for the CIO instruction, 6200
programming software automatically displays the ControlNet Instruction
Entry for ControlNet I/O Transfer Control Block screen (see page 4-2).
4-1
Chapter 4
ControlNet Programming Instructions
Using the CIO Instruction You can use the CIO instruction to transfer up to 64 elements of data (per
CIO instruction) over a ControlNet link.
6200 Important: The 6200 programming software structured text option does
Main Menu not support the CIO instruction.
To display the ControlNet Instruction Entry for ControlNet I/O Transfer
Online Offline
Prog or Prog Control Block screen, follow the steps on the left:
F1 F3
Instruction Entry for ControlNet I/O Transfer Block CT12:1
4-2
Chapter 4
ControlNet Programming Instructions
6200 The Data Monitor for ControlNet I/O Transfer Control Block screen
Main Menu displays the parameters for the control block of the current CIO
instruction. To display the Data Monitor for ControlNet I/O Transfer
Online Offline
Control Block, follow the steps on the left:
Prog or Prog
F1 F3
Data Monitor for ControlNet I/O Transfer Block CT12:1
4-3
Chapter 4
ControlNet Programming Instructions
Using Status Bits The CIO instruction uses the following status bits:
Enable .EN (bit 15) when the rung goes true. The .EN bit is reset when the .DN bit or .ER bit is set.
This bit shows that the instruction is enabled.
Start .ST (bit 14) when the processor begins executing the CIO instruction. The .ST bit is reset when the .DN bit or .ER bit is set.
Done .DN (bit 13) when the last word of the CIO instruction transferred. The .DN bit is reset the next time the associated rung
goes from false to true.
The .DN bit is only active in non-continuous mode.
Error .ER (bit 12) when the processor detects that the message transfer failed. The .ER bit is reset the next time the associated
rung goes from false to true.
Continue .CO (bit 11) manually for repeated operation of the CIO instruction after the first scan, independent of whether the
processor continues to scan the rung.
Enable-Waiting .EW (bit 10) when the processor detects that a message request entered the queue. The processor resets the .EW bit
when the .ST bit is set.
Time Out .TO (bit 08) through ladder logic to stop processing the message. The processor sets the .ER bit.
Using the CT Control Block In addition to the status bits, the CT control block contains these
parameters that the ControlNet PLC-5 processor uses to control
CIO instructions.
Word Number CT Control Block Description
4-4
Chapter 4
ControlNet Programming Instructions
Message (MSG) Instruction Use the MSG instruction to create unscheduled messages (up to 1000
elements each) that are initiated by one ControlNet PLC-5 processor and
sent to another ControlNet PLC-5 processor. For more information on
MSG ControlNet I/O operations, see the ControlNet PLC-5 Programmable
SEND/RECEIVE MESSAGE ( EN )
( DN ) Controllers User Manual, publication 1785-6.5.14.
Control Block MG20:50
( ER )
When the input conditions go from false to true, data is transferred
according to the instruction parameters you set when entering the
MSG instruction.
With ControlNet PLC-5 processors, use a message data file (MG) for the
message control block. For example, MG20:50 is a valid MSG control
block address.
After you enter the control block address for the MSG instruction, 6200
programming software automatically displays the ControlNet Instruction
Entry for Message Block screen (see page 4-6).
4-5
Chapter 4
ControlNet Programming Instructions
Using the MSG Instruction You can use the Message (MG) file type and the MSG instruction to send
two commands over ControlNet within the local ControlNet link:
6200 PLC-5 Typed Write
Main Menu
PLC-5 Typed Read
Online Offline To display the ControlNet Instruction Entry for Message Block screen,
Prog Prog
or follow the steps on the left:
F1 F3
Insert
Press a key to change a parameter or <ENTER> to accept parameters.
Rung
>
F4 Rem Prog Forces:None Edits:None 5/40C File JOSHUA
Command PLC–5 Size in Local/ Remote Link Remote Local Destin Port
Type Address Elemnts Remote Station ID Link Node Address Number
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10
Insert
Instruction
F4
If You Want to: Press this Key:
Change the command type. Toggle between the following: [F1] - Command Type
Others or Enter MSG • PLC-5 Typed Write selects a write operation to a ControlNet
F10 PLC-5 processor
• PLC-5 Typed Read selects a read operation from another
Enter control ControlNet PLC-5 processor
block address
I/O using MG file type Enter the PLC-5 data table address of the ControlNet processor. [F2] - PLC-5 Address
Message
F3
Enter the size in elements. [F3] - Size in Elements
Type the number of elements (1-1000) and press [Enter].
Port
Number Enter the destination node address. [F8] - Local Node
MSG F10 Type a number (1-99) and press [Enter].
F5 Enter the destination data table address. [F9] - Destination Address
Enter the port number. [F10] - Port Number
Type 2
Important: The port number must be 2 for ControlNet.
Enter control block address
using MG file type
Port
Number
F10
Type 2
4-6
Chapter 4
ControlNet Programming Instructions
6200 The Data Monitor for Message Control Block screen displays the
Main Menu parameters for the current MSG instruction. To display the Data Monitor
for Message Control Block screen, follow the steps on the left:
Online Offline
Prog or Prog
Data Monitor for Message Control Block MG20:50
F1 F3
F8
Toggle the control bit that the cursor is on. [F2] - Toggle Bit
You can toggle among the TO, NR, EW, CO, ER, DN, ST, and EN bits.
Change the size of the block of data to send or receive. [F3] - Size in Elements
Change the address for which the data is displayed. [F5] - Specify Address
Display the data table values for the next file. [F7] - Next File
Display the data table values for the previous file. [F8] - Previous File
Display the data table values for the next element. [F9] - Next Element
Display the data table values for the previous element. [F10] - Previous Element
4-7
Chapter 4
ControlNet Programming Instructions
Using Status Bits The MSG instruction uses the following status bits:
Enable .EN (bit 15) when the rung goes true. The .EN bit is reset when the .DN bit or
.ER bit is set.
This bit shows that the instruction is enabled.
Start .ST (bit 14) when the processor begins executing the MSG instruction. The .ST
bit is reset when the .DN bit or .ER bit is set.
Done .DN (bit 13) when the last packet of the MSG instruction transferred. The .DN bit
is reset the next time the associated rung goes from false to true.
The .DN bit is only active in non-continuous mode.
Error .ER (bit 12) when the processor detects that the message transfer failed. The
.ER bit is reset the next time the associated rung goes from false
to true.
Continue .CO (bit 11) manually for repeated operation of the MSG instruction after the first
scan, independent of whether the processor continues to scan
the rung.
Enable-Waiting .EW (bit 10) when the processor detects that a message request entered the
queue. The processor resets the .EW bit when the .ST bit is set.
Time Out .TO (bit 08) through ladder logic to stop processing the message. The processor
sets the .ER bit.
Using the MG Control Block In addition to the status bits, the MG control block contains these
parameters that the ControlNet PLC-5 processor uses to control
MSG instructions.
4-8
Chapter 4
ControlNet Programming Instructions
Immediate Data Input (IDI) When the rung goes true, the IDI instruction performs an immediate update
Instruction of the data input file from the private buffers before the next normal
input-image update.
IDI
IMMEDIATE DATA INPUT
To program an IDI instruction, you must provide the processor with the
Data file offset 232
following information that it stores in its control block:
Length 10
Destination N10:232 Data file offset specifies the offset into the Data Input File (DIF) where
words are read – can be an immediate value (0-999) or a logical address
that specifies the data image file offset.
Immediate Data Output (IDO) When the rung goes true, the IDO instruction performs an immediate
Instruction update of the private memory buffers from the source file before the next
output-image update, sending the updated data output file information
IDO
IMMEDIATE DATA OUTPUT
across the ControlNet network to the appropriate ControlNet device.
Data file offset 232
To program an IDO instruction, you must provide the processor with the
Length 10 following information that it stores in its control block:
Source N7:232
Data file offset specifies the offset into the Data Output File (DOF)
where words are written – can be an immediate value (0-999) or a
logical address that specifies the data image file offset.
Length specifies the number of words to be transferred – an immediate
value (1-64) or a logical address that specifies the number of words to
be transferred.
Source specifies a data table address to be used as the source of the
words to be transferred.
4-9
Chapter 4
ControlNet Programming Instructions
Using IDI and IDO You can use the IDI and IDO instructions for immediate data input and
Instructions output on ControlNet.
6200 To add IDI and IDO instructions to your ladder program, follow the steps
Main Menu
on the left:
Online Offline
Prog or Prog | +IDI––––––––––––––––––––+ |
+––––––––––––––––––––––––––––––––––––––––––––––––––––+IMMEDIATE DATA INPUT +–+
F1 F3 | |Data file offset 1| |
| | | |
| |Length 2| |
| | | |
| |Destination N10:1| |
Cursor to program file
| | 0| |
| +–––––––––––––––––––––––+ |
| +IDO––––––––––––––––––––+ |
Monitor +––––––––––––––––––––––––––––––––––––––––––––––––––––+IMMEDIATE DATA OUTPUT+–+
File | |Data file offset 235| |
| | | |
F8 | |Length 27| |
| | | |
| |Source N7:235| |
| | 0| |
Edit | +–––––––––––––––––––––––+ |
F4
For more detailed information about writing ladder programs, see the
Insert Instruction Set Reference manual, publication 6200-6.4.11, and the
Instruction
Programming manual, publication 6200-6.4.7.
F4
4-10
Chapter
5
Using ControlNet Channel Status Data
Chapter Objectives You can use 6200 programming software to monitor the configuration and
view the status of the ControlNet PLC-5 processor channels using the
ControlNet channel status screen. The channel status screen lets you
monitor the communications on each of the channels and keep track of
messages received and sent by the processor.
Interpreting ControlNet To monitor ControlNet status data associated with channel 2 for
Status Data ControlNet PLC-5 processors, use the ControlNet Channel 2 Status screen.
The data displayed is stored in a diagnostic file defined on the ControlNet
Ladder Editor Device Information Channel 2 Configuration (Edit) screen. If a diagnostic
Main Menu
file has not been defined, you will not be able to display the ControlNet
Channel 2 Status screen.
General
Utility To display the ControlNet Channel 2 Status screen, follow the steps on
F7 the left:
ControlNet
Channel 2 Status
Channel COUNTERS LOCKED
Overview Frames media usage: A only
F4 transmitted good: 0 transmitted aborted: 0 channel A errors: 0
received good: 0 received aborted: 0 channel B errors: 0
total received: 0 received bad: 0 channel warnings: none
Network Capacity
Cursor to channel 2 update time overload: 0 blockage: 0
Moderator Node: 1
mismatch events: 0 unheard occurrences: 0
Channel Channel
Config or Status Misc
out of step events: 0 network silent: 0 noise detected: 0
F5 F7 commands received: 0 collisions: 0
Clear all of the diagnostic counters for this ControlNet node [F1] - Clear Counter
Unlock or lock the diagnostic status counters [F2] - Unlock/Lock Counter
Go to the ControlNet Node Information Channel 2 [F9] - Channel 2 Configuration
Configuration (Monitor) screen
Return to the Channel Overview screen [Esc]
5-1
Chapter 5
Using ControlNet Channel Status Data
Table 5.A describes the fields on the ControlNet Channel 2 Status screen.
Table 5.A
Descriptions of ControlNet Channel 2 Status Screen Fields
Counters Locked – in reverse video if the counters are locked. Pressing [F2] - Lock (Unlock) Counter locks or
unlocks the counter display.
• Counters locked: the display of the counters stops changing, but the counters continue to run
in the background.
• Counters unlocked: the system displays the current value.
Clear counters for all channels by pressing [F1] - Clear Counter.
Frames
media usage – the redundancy characteristic for the ControlNet channel.
transmitted good word 6; bit 15-8, the number of good frames transmitted.
word 5; bit 7-0,
word 5; bit 15-8
transmitted aborted word 9; bit 7-0 the number of frames that could not be completely transmitted and were aborted in the middle
of transmission.
channel A errors word 8; bit 7-0 the number of frames received on the channel A cable that were unusable, independent of the
active channel (channel selected for reception).
received good word 7; bit 7-01, the number of good frames received on the active channel.
word 7; bit 15-8,
word 6; bit 7-0
received aborted word 12; bit 7-0 the number of frames received that were aborted during transmission on the active channel.
channel B errors word 9; bit 15-8 the number of frames received on the channel B cable that were unusable, independent of the
active channel (channel selected for reception).
total received – the total number of frames (good and bad) received on the active channel.
received bad word 8; bit 15-8 the number of unusable frames received on the active channel.
channel warnings word 23; bit 7-6 any channel that is receiving a low level of unusable frames (frames containing data errors).
Network Capacity
update time overload word 10; bit 7-0 the number of times that the network update interval passes with no opportunity to transmit.
blockage word 11; bit 7-0 the number of times that a network update interval does not contain enough room to allow the
transmission of a particular frame.
Moderator Node word 15; bit 15-8 the network address of the node that is transmitting the moderator frame (always the lowest
active network address).
mismatch events word 16; bit 15-8 the number of times a moderator frame was received with network parameters different from
those in the receiving node.
unheard occurrences word 16; bit 7-0 the number of times a node can receive a frame from a lower network address but cannot receive
a moderator.
5-2
Chapter 5
Using ControlNet Channel Status Data
Misc
out of step events word 10; bit 15-8 the number of times any event prevents a frame from being transmitted in the required network
update interval.
network silent word 13; bit 5-8 the number of times a node loses contact with any network activity for three consecutive network
update intervals.
commands received word 17; bit 15-8 the number of station management commands received directly from the network that bypasses
the host processor node.
collisions word 14; bit 7-0 the number of times a node prevents the transmission of a frame because it would cause a
collision to occur.
noise detected word 14; bit 15-8 the number of times that a start of frame could not be detected.
1 All counters display only the status of the node being configured.
5-3
A
Appendix
A-1
Appendix A
Processor Status File
A-2
Appendix A
Processor Status File
A-3
Appendix A
Processor Status File
A-4
Appendix A
Processor Status File
A-5
Appendix A
Processor Status File
A-6
Appendix A
Processor Status File
S:77 Communication time slice for communication housekeeping functions (in ms)
A-7
B
Appendix
I/O Map-Entry Status Words The ControlNet status file is an integer data-table file that you specify and
configure with the I/O map for scheduled-I/O usage, containing status
information about all of the ControlNet network’s scheduled I/O
connections. Each I/O map-table entry has a status-file offset field pointing
to three status words associated with the connection.
First Word
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
B-1
Appendix B
ControlNet I/O Map-Entry Status Words
and Error Messages
I/O Map-Entry Table B.A contains a list of ControlNet error codes, messages, possible
Error Messages causes, and possible corrective actions.
Table B.A
ControlNet I/O Map Entry Error Codes, Messages, Possible Causes, and
Possible Corrective Actions
Decimal Code: Hex Code: Error Message: Explanation or Possible Cause(s): Possible Corrective Actions:
Various Various CONFIGURATION DATA CORRUPTED More than one configured and/or Re-configure map entry overlapping
programmed data transfer is trying to map-table locations.
use the same location in the or
data table. Re-enter overlapping ladder
instructions.
2 0x0002 SCHED BANDWIDTH NOT AVAILABLE There are too many words scheduled Reduce the number of words
for transmission. scheduled for transmission.
The network update time (NUT) is Increase the network update
too small. time (NUT).
The target node is not configured. Correctly configure the target
node as an active node on the
ControlNet network and save your
ControlNet configuration.
18 0x0012 TARGET NODE NOT RESPONDING The ControlNet cable to the target Fix and/or reconnect the ControlNet
node is broken and/or disconnected. cable to the target node.
No power is being received by the Supply power to the device at the
target node. target node.
The target node is offline. Correctly configure the target
node as an active node on the
ControlNet network and save your
ControlNet configuration.
20 0x0014 DEST SLOT/MSG NOT PRESENT The slot number that you entered for Correct the map-table entry.
an adapter is not in the valid range.
The number that you entered for a
peer-to-peer message is not in the
valid range.
The peer-to-peer message map-table Clear the inhibit bit in the map-table
entry in the target node is inhibited. entry of the target node.
256 0x0100 CONNECTION IN USE The connection that the originating No action required – connection can
node is trying to use is already in use. be re-established after the target
node times out the old connection.
260 0x0104 NODE TYPE MISMATCH You entered a node type in the map Correct the map table entry.
table that does not match the or
target node. Replace the target node with the
node type entered in the map table.
262 0x0106 CONNECTION USED BY OTHER NODE The originating node attempted to Delete or inhibit any other node’s
open a connection that is already connection so that the preferred
being used by another node. node can open the connection.
263 0x0107 CONNECTION ALREADY CLOSED The connection the originating node is No action required.
trying to close is already closed.
B-2
Appendix B
ControlNet I/O Map-Entry Status Words
and Error Messages
Decimal Code: Hex Code: Error Message: Explanation or Possible Cause(s): Possible Corrective Actions:
265 0x0109 INVALID CONNECTION SIZE The originating node attempted to Reduce the size that is entered in
open a connection with a larger size the map table.
than the target node can support. or
Use a rack with more slots.
or
Use a rack with higher density.
272 0x0110 NODE NOT CONFIGURED The target node is offline. Correctly configure the target
node as an active node on the
The target node is not configured. ControlNet network and save your
ControlNet configuration.
273 0x0111 EXP NET PCKT TIME INVALID The target node cannot produce the Increase the expected net packet
data at, or faster than, the expected time entered in the map table.
net packet time entered in the
map table.
511 0x01FF INVALID WHEN NODE IS IDLE The ControlNet cable to the target Fix and/or reconnect the ControlNet
node is broken and/or disconnected. cable to the ControlNet node.
No power is being received by the Supply power to the device at the
device at the target node. target node.
The target node is offline. Correctly configure the target
node as an active node on the
ControlNet network and save your
ControlNet configuration.
The target adapter is in Processor Press the restart button on the
Restart Lockout. target adapter.
513 0x0201 CONNECTION ALREADY CLOSED The connection the originating node is No action required.
trying to close has not been opened
by the target node.
515 0x0203 CONNECTION TIMED OUT The ControlNet cable to the target Fix and/or reconnect the ControlNet
node has become broken and/or cable to the target node.
disconnected.
Power is no longer being received by Supply power to the device at the
the device at the target node. target node.
65281 0xFF01 CONNECTION REJECTED The ControlNet cable to the target Fix and/or reconnect the ControlNet
node is broken and/or disconnected. cable to the target node.
No power is being received by the Supply power to the device at the
target node. target node.
The target node is offline. Correctly configure the target
node as an active node on the
ControlNet network and save your
ControlNet configuration.
65294 0xFF0E ATTRIBUTE CANNOT BE SET Your program attempted to set an Change your program so that it
attribute that cannot be set for a does not attempt to set the attribute.
specific module–e.g., a CIO instruction or
attempted to send safe-state data to a Insert a module that can have this
flex module that does not support attribute set.
safe-state data.
65299 0xFF13 NOT ENOUGH DATA The length is zero. Increase the length of the data.
The processor data table is too small. Increase the size of the data table.
65301 0xFF15 TOO MUCH DATA The transfer length is too large. Decrease the length of the transfer.
B-3
Appendix B
ControlNet I/O Map-Entry Status Words
and Error Messages
Decimal Code: Hex Code: Error Message: Explanation or Possible Cause(s): Possible Corrective Actions:
65522 0xFFF2 CONFIG FROM MAP ENTRY FAILED The ControlNet cable to the target Fix and/or reconnect the ControlNet
node is broken and/or disconnected. cable to the target node.
No power is being received by the Supply power to the target node.
target node.
The node or slot contains the wrong Insert the proper module in the
module type. correct slot of the target node.
An incorrect module type was entered Enter the correct module type in the
in the map table. map-table entry.
65523 0xFFF3 CONTROLNET TRANSFER QUEUE FULL The immediate CIO transfer could not Keep the number of active CIOs at
be executed because the queue is full. or under the maximum of 32.
65527 0xFFF7 MODULE TIMED OUT The node or slot contains the wrong Insert the proper module in the
module type. correct slot of the target node.
An incorrect module type was entered Enter the correct module type in the
in the map table. map-table entry.
65529 0xFFF9 COMM ERROR CAUSED LOSS OF DATA A communication error between the Make sure that the proper module is
module and the adapter caused data securely seated in the correct slot of
to be lost. the target node.
Make sure that the correct
module type is entered in the
map-table entry.
65530 0xFFFA MODULE DECLARED INVALID LENGTH The module or slot contains the wrong Insert the proper module in the
module type. correct slot of the target node.
An incorrect module type was entered Enter the correct module type in the
in the map table. map-table entry.
65531 0xFFFB READ DATA INVALID The module or slot contains the wrong Insert the proper module in the
module type. correct slot of the target node.
An incorrect module type was entered Enter the correct module type in the
in the map table. map-table entry.
65532 0xFFFC WRITE DATA INVALID The module or slot contains the wrong Insert the proper module in the
module type. correct slot of the target node.
An incorrect module type was entered Enter the correct module type in the
in the map table. map-table entry.
65533 0xFFFD DATA TABLE TOO SMALL The processor data table is too small. Increase the size of the data table.
B-4
Customer Support If you need additional assistance in using your software, Allen-Bradley offers
telephone and on-site product support.
For technical assistance on the telephone, first contact your local sales office,
distributor, or system integrator. If you need additional assistance, then contact
your local Customer Support Center.
For assistance that requires on-site support, contact your local sales office,
distributor, or system integrator. During non-office hours, contact the
Allen-Bradley 24-hour Hot Line at: 1-800-422-4913 in the United States or
contact your local Customer Support Center outside the United States.
World Headquarters, Allen-Bradley, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444