AB-pfbslc
AB-pfbslc
AB-pfbslc
User’s Guide
Version 2.04
50 Northland Road
Waterloo, Ontario, CANADA
N2V 1N3
Tel: (519) 725-5136 Fax: (519) 725-1515
www.sstech.on.ca
i
SST-PFB-SLC User’s Guide
ii
Contents
Introduction .................................................................... 1
1
1.1 Purpose of this manual ................................. 2
1.2 Related Documentation ................................ 2
1.3 Conventions used in this manual .................. 3
1.3.1 Special Notation .................................... 3
1.4 Warranty ....................................................... 4
1.5 Technical Support ......................................... 5
1.5.1 Before you call for help ......................... 5
1.5.2 Getting help ........................................... 5
Overview ....................................................................... 7
2
2.1 System Overview .......................................... 8
2.2 Hardware Features ..................................... 10
2.2.1 LEDs ................................................... 11
2.2.2 9-pin ProfiBus connector ..................... 11
2.2.3 Configuration port ............................... 11
iii
SST-PFB-SLC User’s Guide
3
3.1 Equipment and tools ................................... 14
3.2 Package Contents ....................................... 14
3.3 Power Requirements .................................. 15
3.4 Procedures .................................................. 16
3.4.1 Setting up the Scanner ........................ 16
3.4.2 Getting the Scanner Running .............. 17
4
4.1 Installing the Scanner Module ..................... 20
4.1.1 Installation ........................................... 21
4.1.2 Removal .............................................. 21
4.2 Wiring .......................................................... 22
4.2.1 ProfiBus Wiring ................................... 22
4.2.2 Serial Port Wiring ................................ 23
4.3 Status LEDs ................................................ 24
4.3.1 SYS LED ............................................. 24
4.3.2 COMM LED ......................................... 25
5
5.1 Configuring the Scanner ............................. 28
5.1.1 APS ..................................................... 28
5.1.2 PLC-500 Ladder Logistics ................... 29
5.1.3 RS Logix 500 ....................................... 30
5.2 Creating an I/O Configuration in the SST
ProfiBus Configuration Tool ................................. 31
5.3 Creating an I/O Configuration in COM
PROFIBUS. .......................................................... 33
5.3.1 Mapping the Addresses ...................... 35
5.4 Uploading the I/O Configuration to the
Scanner ................................................................ 37
5.4.1 Network Parameter Errors .................. 40
5.4.2 Binary File Configuration Errors .......... 40
5.4.3 Flash Programming Errors .................. 41
5.4.4 COM PROFIBUS Address Assignment
Errors .................................................. 41
5.4.5 Fatal Errors ......................................... 42
5.5 Running the Scanner .................................. 43
5.6 Using the Watch-Dog Timer ....................... 44
5.6.1 How the Host Watch Dog works ......... 44
iv
Contents
6
6.1 Addressing .................................................. 46
6.2 32 Discrete Output Module ......................... 46
6.3 32 Discrete Input Module ............................ 47
6.4 Example: M0/M1 Addressing ...................... 47
6.5 Example: Accessing Data ........................... 47
6.6 Example: Using Flex I/O ............................. 50
7
7.1 Slave Received Data .................................. 54
7.2 Slave Transmit Data ................................... 55
7.3 Displaying the DP Slave Configuration ....... 56
7.4 Disabling DP Slave Operation .................... 56
7.5 Using the Module Only as a DP Slave ........ 56
7.5.1 Local Station ....................................... 57
7.5.2 Active/Passive ..................................... 57
7.5.3 Baud Rate ........................................... 57
7.5.4 Other Network Options ........................ 57
7.5.5 Displaying Network Settings ............... 57
7.6 Configuring the Module as a Slave Using
COM Profibus ...................................................... 57
v
SST-PFB-SLC User’s Guide
Diagnostics .................................................................. 79
9
9.1 Status Register ........................................... 80
9.2 Scanner Firmware Version Number ............ 80
9.3 DP Master Slave Status Table .................... 81
9.4 DP Master Slave Error Table ...................... 82
9.5 DP Master Slave Extended Status Table .... 82
9.5.1 Reading the Extended Status ............. 83
9.6 DP Master Error Information Table ............. 83
9.7 DP Slave Status Register ........................... 87
9.8 DP Slave Error Register .............................. 88
9.9 Diagnostic Counters .................................... 89
9.9.1 General Statistics ................................ 91
9.9.2 DP Master Statistics ............................ 91
9.9.3 DP Slave Statistics .............................. 92
9.9.4 ASPC2 PROFIBUS Controller
Statistics .............................................. 92
9.10 Summary of Diagnostic Locations .............. 94
9.10.1 M1 File ................................................ 94
9.10.2 M0 File ................................................ 94
10
Network Parameter Defaults ....................................... 97
11
M0 and M1 Files ........................................................ 101
12
12. Addressing M0 and M1 Files .................... 103
1.2.1 Restrictions on Using M0-M1 Data
File Addresses .................................. 103
1.2.2 Monitoring Bit Addresses .................. 104
1.2.3 Transferring Data between Processor
Files and M0/M1 Files ....................... 104
vi
Contents
A
Index .......................................................................... 107
vii
SST-PFB-SLC User’s Guide
viii
1
Introduction
1
SST-PFB-SLC User’s Guide
An introduction to APS for first Getting Started Guide for APS 1747-6.3
time users
2
Introduction
3
SST-PFB-SLC User’s Guide
1.4 Warranty
ST guarantees that all new products are free of defects in material and
workmanship when applied in the manner for which they were intended and
according to SST’s published information on proper installation. The
Warranty period for the SST-PFB-SLC is 1 year from the date of shipment.
SST will repair or replace, at our option, all products returned freight prepaid,
which prove upon examination to be within the Warranty definitions and time
period.
The Warranty does not cover costs of installation, removal or damage to user
property or any contingent expenses or consequential damages. Maximum
liability of SST is the cost of the product(s).
Product Returns
If it should be necessary to return or exchange items, please contact SST for a
Return Authorization number.
SST
50 Northland Road
Waterloo, Ontario, N2V 1N3
Voice: (519) 725-5136
Fax: (519) 725-1515
4
SST-PFB-SLC User’s Guide
5
SST-PFB-SLC User’s Guide
6
2
Overview
7
SST-PFB-SLC User’s Guide
8
Overview
The SLC processor scan and the scanner I/O scan are independent
(asynchronous) of each other.
The SLC processor reads the scanner input data during its input scan and
writes the output data during its output scan. The scanner continues reading
input data from the slaves and writing output data to the slaves independent of
what the SLC is doing.
The scanner module can also act as a DP slave to another DP master on the
same network. It supports up to 122 words of input data and 122 words of
output data as a slave. Up to 32 words of data can be configured to be in the
input and output files. With the SST ProfiBus Configuration Tool, up to 1000
words of data can be configured in the M0 and M1 files. With COM
PROFIBUS, up to 122 words of data can be configured in the M0 and M1
files.
The scanner supports up to four FDL SAPs and up to four FDL message
blocks.
Caution
this equipment is neither designed for, nor intended for use in
installations where it is subject to hazardous voltages and
hazardous currents.
9
SST-PFB-SLC User’s Guide
Feature Description
status LEDs display the communication and system status
front label identifies the scanner
9-pin ProfiBus connector for connection to the ProfiBus network
self locking tabs secure the scanner in the chassis slot
side label (nameplate) provides module information
configuration port for uploading I/O configuration data
10
Overview
2.2.1 LEDs
There are two LEDs on the scanner, the SYS LED and the COMM LED.
The SYS LED indicates overall status of scanner operations.
The COMM LED indicates communication status.
Refer to section 4.3, Status LEDs, in this manual for more detailed
information.
11
SST-PFB-SLC User’s Guide
12
3
Quick Start
Note
The procedures in this chapter are written with the
assumption that the user has a basic understanding of process
control, and is able to interpret the ladder logic instructions
that control the applications.
This Quick Start guide does not include detailed information
in the procedures, although other chapters are referenced,
where more information is available.
13
SST-PFB-SLC User’s Guide
Note
Prior to performing the procedures outlined in this section,
ensure that the latest version of the software has been
downloaded to the module. The firmware is available on our
website:
www.sstech.on.ca
14
Quick Start
Note
The scanner consumes 700 mA @ 5VDC.
For modular systems, calculate the total load on the system power supply
using the procedure described in the:
SLC 500 Modular Style Installation & Operation Manual, Allen-Bradley
Publication 1747-6.2
or:
SLC 500 Family System Overview, Publication 1747-2.30.
15
SST-PFB-SLC User’s Guide
3.4 Procedures
The setup of the SST-PFB-SLC ProfiBus Scanner is divided into two parts:
• Setting up the scanner.
• Getting the scanner running.
Warning
Ensure that system power is off, before working on or around
this equipment.
Note
If you do not set the M0 and M1 file sizes, the programming
device will not let you access the M files in the SLC control
program. Refer to section 5.1, Configuring the Scanner, in
this manual for more detailed information.
If you are using fewer than 32 input words or 32 output words, you
can reduce the size of “scanned inputs” or “scanned outputs”.
5. Write the rest of the control program that will use the scanned data.
6. Apply power to the SLC. Put the SLC in program mode and transfer
the program to the SLC. See your programming software manuals
for details.
16
SST-PFB-SLC User’s Guide
Note
The I/O addresses determine where the slave data maps into
the SLC data table. Siemens inputs P0 to P63 map into I0 to
I31. Siemens outputs P0 to P63 map into O0 to O31.
6. Save the file, then export the configuration to a binary file (.bss).
7. Connect your communication software to the scanner using a null
modem cable. While the SLC is in program mode, send an asterisk
(*) to the scanner using your terminal software. You may need to
send several “*”s as the scanner auto baud detects. See section 5.4
for details.
17
SST-PFB-SLC User’s Guide
Note
After you type Exit, the message Configuration HAS
CHANGED. Do You Want to UPDATE FLASH
(y/n)? appears. Type Y to store the new configuration in
flash.
18
4
Installation and Wiring
19
SST-PFB-SLC User’s Guide
Warning
Disconnect system power before attempting to install,
remove, or wire the scanner.
Note
The scanner consumes 700 mA at 5 VDC.
20
Installation and Wiring
4.1.1 Installation
1. Disconnect power.
2. Align the full-sized circuit board with the chassis card guides. The
first slot (slot 0) of the first rack is reserved for the SLC 500
processor.
3. Slide the module into the chassis until the top and bottom latches
catch.
4. Attach the ProfiBus cable. Turn on termination as required (Is this
station at one of the two physical ends of the network?).
5. Route the cable down and away from the scanner.
6. Cover all unused slots with the card slot filler, Allen-Bradley catalog
number 1746-N2.
4.1.2 Removal
1. Disconnect power.
21
SST-PFB-SLC User’s Guide
4.2 Wiring
4.2.1 ProfiBus Wiring
The module contains a standard DB9 connector which can be connected to a
Profibus bus terminal. The module has no termination but the bus terminal
has built-in switchable termination.
7 reserved
8 data -
9 reserved
22
Installation and Wiring
The two physical ends of the network should be terminated. There should be
two, and only two, terminators on a network.
The recommended cable is Beldon3079A. Examples include:
• Siemens 6XV1 830-OAH10 Two Core shielded
• Siemens 6XV1 830-OBH10 w/PE Sheath
• Siemens 6XV1 830-3AH10 for underground burial
• Siemens 6XV1 830-3BH10 trailing cable
• Bosch Comnet DP #913 548 Flexible ProfiBus cable
• Bosch Comnet DP #917 201 Trailing ProfiBus Cable
• Bosch Comnet DP #917 202 Massive ProfiBus Cable
Allen Bradley blue hose which has an impedance of 78 ohms, is not
recommended.
Caution
Do NOT Connect devices to the +5V line. It is there for
termination purposes only.
1 6 1 6
2 7 2 7
3 8 3 8
4 9 4 9
5 5
Note
Since pins 2 and 3 are wired the same as a PC 9-pin COM
port, the serial cable for a standard PC COM port must have
lines 2 and 3 swapped. The serial connection does not require
any handshaking.
23
SST-PFB-SLC User’s Guide
Color Indication
Red one or more slaves is reporting a fault condition
Amber the module is in program or test mode
DP Slave
Color Indication
Red the slave is not being scanned or is faulted
FDL
Color Indication
Red a fault has occurred
At system start up, the SYS LED flashes green for two seconds.
24
Installation and Wiring
Color Indication
Red a network error has occurred. the LED flashes red at one second
intervals.
If you are using the scanner as a passive DP slave only, this LED will
normally be off.
25
SST-PFB-SLC User’s Guide
26
5
DP Master Configuration and
Programming
27
SST-PFB-SLC User’s Guide
Note
When you are configuring the scanner, ensure that the SLC is
in PROGRAM mode.
When you program your SLC system in APS, use the following steps to set
up the scanner:
1. Create a new program or modify an existing program in offline
mode.
Note
You can configure a maximum of 8 SST-PFB-SLC modules
using APS because of the 256 word I/O limit in the SLC and
the fact that APS always assigns 32 words of input and 32
words of output to the SST-PFB-SLC.
28
DP Master Configuration and Programming
Note
When you are configuring the scanner, ensure that the SLC is
in PROGRAM mode.
Note
PLC-500 Ladder Logistics does not limit you to 8 SST-PFB-
SLC modules in a rack.
29
SST-PFB-SLC User’s Guide
Note
When you are configuring the scanner, ensure that the SLC is
in PROGRAM mode.
30
DP Master Configuration and Programming
Note
Edit device properties at any time by right clicking on the
device and choosing Properties or selecting the device from
the network list and clicking on the Properties button on the
main toolbar.
31
SST-PFB-SLC User’s Guide
8. Find and select your slave device in the Profibus Devices frame. To
add this slave device to the DP Network:
• Drag and drop it into the network view under the master device.
or:
• Click on the Add to Network button on the main toolbar.
If your slave device is not listed, click on the Add Device button on
the Profibus Devices frame to add the GSD file for your device. The
Add PROFIBUS Devices dialog box opens. Find the GSD file and
click Open. You can now add the device to the network view as
described above.
A configuration dialog box appears for the selected slave.
9. Set the station address of the slave in the General tab.
10. If your device is a modular device, you have to insert the modules
your slave device uses. Select the Modules tab of the dialog box. If
your slave is not a modular device (compact device) then the
modules are already configured.
11. Repeats steps 6-8 for each slave device on your network.
12. To set the parameters for your network, right click on the highest
level of the network list (default PROFIBUS_DP) and choose
Properties.
The Network dialog box opens and you can set baud rate and other
parameters.
13. Chose File/Save As. to save your configuration.
The Save As dialog box opens. Specify a file name for your
configuration and click Save.
14. Choose Edit/Export Binary… to export your configuration to a
binary (.bss) file.
32
DP Master Configuration and Programming
For the older COM ET 200 software, the main directory name is comwinxx
where xx corresponds to the version number. For example, if the version is
2.1, the directory is called comwin21.
33
SST-PFB-SLC User’s Guide
This procedure describes the steps to create a binary file to configure the
SST-PFB-SLC as a DP master. In this procedure, the network being
configured consists of only Profibus DP remote I/O devices. Refer to the
COM PROFIBUS software documentation for more detailed information.
each step.
1. Create a new file ( File/New).
2. Select the master station number. This sets the station number of the
scanner on the Profibus network.
3. For the master station type select SST-PFB-SLC Master. If the
update files for the SST-PFB-SLC have not been installed, set the
master station type to be IM 308-C and set the host type to S5-115U/
CPU 944A or S5-115U/CPU 944B.
4. Select Configure/Bus parameters...
• Set the baud rate for the network.
• If there is a repeater on the bus, check the Repeater on bus
checkbox.
• If there are FMS devices on the network, change the Bus
profile to DP/FMS.
• If the network has only Profibus DP devices, leave the bus
profile as PROFIBUS-DP. COM PROFIBUS takes care of
assigning appropriate default values for all the network
parameters.
5. Click OK.
6. Select Configure/slave parameters... to create and configure each
slave:
• select the slave station number
• select the slave device family
• select the slave station type
• select the slave module type
34
DP Master Configuration and Programming
7. Click Configure... to assign the I/O addresses for the slave. These
addresses determine where the slave data appears in the SLC.
Refer to section 5.3.1, Mapping the Addresses, for detailed
information on addressing.
8. Save the configuration file (File/Save) after all the slaves have been
configured.
9. Export the configuration to a binary file (File/Export/Binary File).
This generates a .2bf file.
Note
If there are multiple masters on the same network, include
both masters in the COM PROFIBUS file. Select the master
system to export and COM PROFIBUS will take care of
increasing the target token rotation times, watchdog times,
etc. to appropriate values.
Note
If you do not assign an address to a module, the data for that
module will be unavailable.
Note
P addresses in the configuration tool are byte addresses while
the I and O addresses in the SLC are word addresses.
Addresses in the Q range appear in the M0 area (outputs) and the M1 area
(inputs).
35
SST-PFB-SLC User’s Guide
Addresses Q0 to Q255 map to M1:0-127 for inputs and M0:0-127 for outputs.
Note
Q addresses in the configuration tool are byte addresses
while the M0 and M1 addresses in the SLC are word
addresses.
36
DP Master Configuration and Programming
1 6 1 6
2 7 2 7
3 8 3 8
4 9 4 9
5 5
Connect to the serial port using any communication software. The scanner
serial port supports any baud rate from 9600 baud to 115 Kbaud, with no
parity, 8 data bits, 1 stop bit. The scanner automatically detects the baud rate
you are using.
When configuring the scanner, the SLC must be in program mode. Type an
asterisk (*) to get the scanner’s attention. You may need to type several
asterisks to let the scanner auto-detect the baud rate being used. The scanner
displays the message:
Profibus DP ONLY
Copyright (c) 1999 SST, a division of Woodhead Canada Limited
For SST-PFB-SLC Card
Version x.xx
37
SST-PFB-SLC User’s Guide
Command Description
38
DP Master Configuration and Programming
You can also upload a DP master configuration file .2bf using the
Rec2bfXmodem command.
39
SST-PFB-SLC User’s Guide
02h STS_BAD_BAUD
03h STS_BAD_STN_ADR
04h STS_BAD_HI_STN_ADR
05h STS_BAD_TOK_ROT
06h STS_BAD_SLOT_TME
07h STS_BAD_IDLE_1
08h STS_BAD_IDLE_2
09h STS_BAD_RDY_TME
0ah STS_BAD_QUI_TME
0bh STS_BAD_GAP_UPD
0ch STS_BAD_TOK_RETRY
0dh STS_BAD_MSG_RETRY
0eh STS_BAD_TOK_ERR_LIM
0fh STS_BAD_RSP_ERR_LIM
10h STS_BAUD_DET_ERROR
20h STS_CFG_BAD_CHK_PATTERN
21h STS_CFG_BIN_TOO_SHORT
22h STS_CFG_BIN_TOO_LONG
23h STS_CFG_BAD_CHKSUM
24h STS_CFG_INVALID_CPU_HDR
25h STS_CFG_INVALID_SLV_REC_TYP
26h STS_CFG_RX_OVERFLOW
27h STS_CFG_TX_OVERFLOW
35h STS_CFG_MAS_EXT_ALLOC_ERROR
40
DP Master Configuration and Programming
Error 20h occurs if you are using old firmware with the SST ProfiBus
Configuration Tool or when you are using firmware version 1.5x or later with
the old beta of the SST configuration tool (ver 0.x).
Error 23h typically occurs when new firmware was just loaded. Issue the
ClrMas command and try downloading again.
Error 25h occurs when you use the incorrect command. Use Rec2bfXmodem
for binary files from Siemens COM PROFIBUS and RecbssXmodem for
binary files from the SST ProfiBus Configuration Tool.
41
SST-PFB-SLC User’s Guide
42
DP Master Configuration and Programming
SLC Modes
The scanner mode of operation follows the SLC mode of operation (program,
test, run).
• When the SLC is in program mode, the scanner outputs are off and
inputs hold their last state.
• When the SLC is in test mode, inputs are read and updated but
outputs are off.
• When the SLC is in run mode, the scanner updates inputs and
outputs.
43
SST-PFB-SLC User’s Guide
Logic Example
The following rung of logic can be used in the your program to automatically
have the SST-PFB-SLC scanner’s watchdog period track that of the SLC
processor.
The SST-PFB-SLC is located in the first slot of the SLC rack. The watchdog
register is M0:1.4011.
44
6
DP Master Application
Examples
45
SST-PFB-SLC User’s Guide
6.1 Addressing
The scanner occupies slot 2 in the SLC rack. The following table shows the
modules in the I/O configuration, the address assigned in COM PROFIBUS,
and the location of the I/O data in the SLC.
32DO P0 O:2.0
O:2.1
32DI P0 I:2.0
I:2.1
Module data P0 P1 Q0 Q1
address
46
DP Master Application Examples
Module data P0 P1 Q0 Q1
address
47
SST-PFB-SLC User’s Guide
Sample Program
48
DP Master Application Examples
Sample continued
49
SST-PFB-SLC User’s Guide
The program uses 80 ms and 160 ms internal timers to implement four states,
with a combined period of 320 ms. The OSR instructions ensure that the SLC
executes the COP instruction only at the start of one of these states. The result
is that all four blocks are accessed within the 320 ms combined period of the
two timers.
50
DP Master Application Examples
The following table shows how to configure the various Flex I/O modules.
An entry of 000 means do not configure a length for that slot.
Configure the I/O address as a P address so that the data maps into the I or O
file in the SLC for fast access, and the status part of the address as a Q address
so that the data maps into the M area.
51
SST-PFB-SLC User’s Guide
pre-assigned 0 1AI Q0 -
pre-assigned 1 1AO - Q2
1794-IB16 2 1AI P0 -
3 1AO - Q4
1794-OB16 4 000 - -
5 1AO - P2
1794-IE8 6 9AI P4 -
7 1AO - Q6
empty 8 000 - -
9 000 - -
empty 10 000 - -
11 000 - -
empty 12 000 - -
13 000 - -
empty 14 000 - -
15 000 - -
empty 16 000 - -
17 000 - -
The input data for the 1794-IB16 maps into I:2/0 to I:2/15.
The output data for the 1794-OB16 module maps into O:2/16 to O:2/31.
52
7
Using the Scanner Module as a
DP Slave
53
SST-PFB-SLC User’s Guide
Note
The scanner module does not check for address conflicts
between the DP master and DP slave operations. You are
responsible for ensuring that addresses have been assigned
without conflicts or overlaps.
54
Using the Scanner Module as a DP Slave
55
SST-PFB-SLC User’s Guide
56
Using the Scanner Module as a DP Slave
7.5.2 Active/Passive
To set the station to be passive, issue the command Active 0.
57
Using the Scanner Module as a DP Slave
58
8
Using FDL
59
SST-PFB-SLC User’s Guide
Caution
If you are using FDL, the scanner uses words I:31 and O:31
in the I/O tables for FDL control and status. You must not
configure any I/O modules to use these words or
unpredictable operation will occur.
The scanner sets the bits in the input file; the SLC application sets the bits in
the output file.
Message/SAP block 0 1 2 3
Message done 8 9 10 11
Message error 12 13 14 15
Message/SAP block 0 1 2 3
SAP indication 0 1 2 3
acknowledge
Message trigger 8 9 10 11
60
Using FDL
M0 and M1 Files
The scanner uses areas in the M0 and M1 files for FDL message and SAP
configuration information and data.
M0 offsets Use
M1 offsets Use
61
SST-PFB-SLC User’s Guide
Setting up a Message
To set up a message block, select which message block (0-3) being used. This
determines which of the areas in the M0 and M1 files will be used.
Set the appropriate values in the FDL message control block for the message,
in the corresponding area of the M0 file.
The following table shows the offsets to the message control block elements
for each of the four message control blocks (0-3), and their locations in the
M0 file.
Offset Name 0 1 2 3
62
Using FDL
Note
This high priority refers to how the message is processed by
the scanner in getting it out on the network and has nothing
to do with a high priority frame control value. For example,
if the message type is SRDL, the message is processed as a
low priority message at the destination.
If you set bit 4 in the CntCfg register, the scanner does not include
this message block when it is displaying the status of FDL messages
on the LED.
• the destination station, DstStn. The allowed range is 0 to 126.
• the destination SAP, DstSap, if required. This is almost always
needed. The default value is 255, which means the message gets sent
to the default SAP at the destination. You usually send the message
to some specific SAP. The allowed range is 0 to 63, or 255.
When you send a message with a destination SAP, the scanner
automatically sets the high bit in the destination station number
when it sends the message. Do not set the high bit when you set the
destination station number.
• the source SAP, SrcSap, if required. If you are sending a destination
SAP, you almost always want to send a source SAP. The default
value is 255. The use of the source SAP is application and module
dependent; the destination station may or may not require or use the
source SAP.
63
SST-PFB-SLC User’s Guide
• the transmit data length, TxLen, in bytes. The allowed values are 0
to 244.
• the transmit data, TxData.
Message block 0 1 2 3
Message trigger 8 9 10 11
64
Using FDL
The scanner sends the message. Wait for the message done bit to be set and
check the error bit in word I:31 of the input file.
Message block 0 1 2 3
Message done 8 9 10 11
Message error 12 13 14 15
If there is an error with the message, both the done bit and the error bit will be
set.
Message Replies
The scanner module always fills in the message reply area in the M1 file.
Some of the data comes from the destination station; some comes from the
scanner.
Offset Name 0 1 2 3
65
SST-PFB-SLC User’s Guide
X0 OK
If the destination station sends reply data, the reply data length in bytes is in
RxLen. Possible values are 0 to 244. The reply data itself is found in RxData.
66
Using FDL
Sample Program
67
SST-PFB-SLC User’s Guide
Sample Continued
68
Using FDL
SAP block 0 1 2 3
You acknowledge the SAP update by setting the corresponding bit in output
word O:31.
SAP block 0 1 2 3
Setting the SAP indication ACK bit tells the scanner to clear the SAP
indication update bit in the input word and also transfers the current reply
data from the area in the M0 file for this SAP block to the area the scanner
uses to send a reply the next time the SAP is updated.
Important: In order for the scanner to have reply data when the SAP is first
updated, you must set the SAP indication ACK bit for the SAP block when
your program starts.
When the scanner clears the SAP indication update bit in the input word, your
application should clear the SAP indication acknowledge bit.
69
SST-PFB-SLC User’s Guide
Offset Name 0 1 2 3
Bit 7 in Status is set if the SAP is operating with no problems. If this bit is 0,
there is a problem with this SAP.
If there is a problem with this SAP, Error contains the value 1.
SrcStn contains the number of the station that updated the SAP. Bit 7 is set if
the message was sent with a source SAP.
SrcSap is the source SAP sent in the message and is valid only if bit 7 in
SrcStn is set.
RxLen is the length of received data, in bytes. Possible values are 0 to 244.
RxData contains the received data.
70
SST-PFB-SLC User’s Guide
Offset Name 0 1 2 3
Write the transmit length, in bytes, to TxLen and write the transmit data in
TxData.
The scanner automatically sends the reply data when the SAP is updated. In
order for the scanner to have reply data ready when the SAP is first updated,
you must set the SAP indication ACK bit for the SAP block when your
program starts.
71
SST-PFB-SLC User’s Guide
Sample Program
72
SST-PFB-SLC User’s Guide
Sample Continued
73
SST-PFB-SLC User’s Guide
74
SST-PFB-SLC User’s Guide
Local Station
To set the local station number, issue the LocStn command with the station
number (0-126) as a parameter.
Example
LocStn 22
Active/Passive
To set the station to be active, issue the command Active 1.
Baud Rate
To set the baud rate, issue the Baud command with the baud rate as a parame-
ter. Allowed values for the baud rate parameter are 9k6, 19k2, 93k75, 187k5,
500k, 750k, 1m5, 3m, 6m, and 12m.
Example
Baud 1m5
75
SST-PFB-SLC User’s Guide
76
SST-PFB-SLC User’s Guide
77
SST-PFB-SLC User’s Guide
78
9
Diagnostics
79
SST-PFB-SLC User’s Guide
80
Diagnostics
bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
4000 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
4001 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
4002 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
4003 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
4004 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64
4005 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80
4006 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96
4007 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112
This table can be used in conjunction with the global fault enable, bit 0 of
register 4010 in the M0 file, and the ignore slave fault table, 4000-4007 in the
M0 file, to fault the SLC if slaves are in error.
If the global fault enable bit is 0, the scanner will not fault the SLC when
there are slave errors. This is the default.
If the global fault enable bit is 1, the scanner will fault the SLC when there
are slave errors. However you can use the ignore slave fault table to tell the
scanner to ignore the status of some slaves.
The ignore slave fault table is organized exactly like the slave status table
above. Set the bit that corresponds to a slave if you want the scanner to ignore
the status of that slave. If the bit for a slave is set, the slave status is shown in
the slave status table but it is not included in the all slaves good flag, bit 0 of
register 4013.
Wait an appropriate time before you turn on the global fault enable bit. It
takes some time for DP slaves to start up. The amount of time depends on the
baud rate and the startup time for the slaves on the network.
81
SST-PFB-SLC User’s Guide
bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
4020 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
4021 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
4022 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
4023 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
4024 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64
4025 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80
4026 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96
4027 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112
This table is similar to the slave status table, except that it shows errors rather
than stations with good status.
bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
4030 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
4031 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
4032 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
4033 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
4034 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64
4035 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80
4036 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96
4037 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112
82
Diagnostics
Register Slave
3700 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
3716 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
3732 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
3748 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
3764 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
3780 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
3796 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
3812 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
The scanner sets various values in the high byte to indicate the cause of any
problems with the slave. Some errors occur during parameterizing the slave,
others occur at runtime. If there are multiple errors, only the last one is
shown. The host acknowledges these errors by clearing the register.
83
SST-PFB-SLC User’s Guide
Value Cause
For some values in the high byte, the scanner provides additional information
in the low byte to help pinpoint the cause of the problem.
The following tables list possible values in the low byte.
high byte = 01h (failure while trying to configure slave)
Value Description
84
Diagnostics
Value Description
high byte = 03h (frame delivery problem while updating slave data)
Value Description
high byte = 04h (frame delivery problem while reading slave diagnostics)
Value Description
1 Invalid response when reading slave diagnostics
while online
85
SST-PFB-SLC User’s Guide
Bit Meaning
0 DP slave non-existent
high byte = 07h (error in diagnostic status byte #1 during diagnostic read)
The value in the low byte depends on the value returned by the slave in the
first station status byte when the master reads diagnostics while online. Mask
the value with 0F7h and any bits that are set should not be set. The bits in
station status 1 are shown in the above table.
high byte = 06h (error in diagnostic status byte #2 during configure)
The value in the low byte depends on the value returned by the slave in the
second station status byte when the master reads diagnostics during
configuration. Mask the value with 080h and any bits that are set in the result
should not be set. Mask the value in the low byte with 04h and bit 2 should be
set.
86
Diagnostics
Bit Meaning
6 reserved
high byte = 08h (error in diagnostic status byte #2 during diagnostic read)
The value in the low byte depends on the value returned by the slave in the
second station status byte when the master reads diagnostics while online.
Mask the value with 080h and any bits that are set should not be set. Mask the
value in the low byte with 04h and bit 2 should be set. The bits in station
status 2 are shown in the above table.
87
SST-PFB-SLC User’s Guide
All these errors except timeout happen when the slave is being parameterized
by the master.
If the value is SLV_ERR_ID_MISM, the slave ID does not match the slave
ID configured in the master. If there is a mismatch, the slave won’t
communicate with the master.
If the value is SLV_ERR_READY_TIME_MISM, the ready time for the card
is different from the value configured in the master. The card can
communicate as a slave even if the times are different but you may
experience network errors.
If the value is SLV_ERR_UNSUP_REQ, the master has requested Sync or
Freeze during parameterization, which the card does not support.
If the value is SLV_ERR_RX_LEN_MISM, the data received from the
master has a length different from the length configured on the card. If there
is a receive length mismatch, the card won’t communicate as a slave.
88
Diagnostics
89
SST-PFB-SLC User’s Guide
90
Diagnostics
91
SST-PFB-SLC User’s Guide
92
Diagnostics
The errNetTout counter, the low byte of register 4127, counts network
timeout errors. These errors occur when the network is dead. If a timeout
occurs, the scanner enters the claim token state.
The errHsa counter, the high byte of register 4127, increments when a station
higher than the set high station address is heard. If the scanner is going
online, it increments the counter and stays offline.
The errStn counter, the low byte of register 4128, increments when a
duplicate station is detected. If this error occurs when the scanner is going
online, the scanner increments the errStn counter and stays offline.
The errPasTok counter, the high byte of register 4128, increments when the
scanner is unable to pass the token. This is usually caused by bad wiring
(usually shorted) or other hardware problems. The scanner tries to pass the
token, fails to hear its own token pass message, and puts itself offline.
The errLasBad counter, the low byte of register 4129, increments when the
active station list on the ASPC2 LAN controller is invalid because of multiple
network errors. This error is caused by bad wiring or hardware.
The locations errInternal, the high byte of register 4129, and errArg, the low
byte of register 4130, are reserved. If a fatal error occurs, the values in these
registers may indicate the source of the problem. Record them for technical
support. However, the scanner uses these locations for other purposes. If
there is a value in one of these locations, it doesn’t necessarily indicate that a
fatal error has occurred.
The scanner also copies errArg to the low byte of register 4012.
93
SST-PFB-SLC User’s Guide
9.10.1 M1 File
Locations Use
4012 errArg
9.10.2 M0 File
Locations Use
94
10
Upgrading the Scanner
Firmware
95
SST-PFB-SLC User’s Guide
Use the serial CONFIG port on the front of the scanner to upload
configuration files to the scanner.
The serial cable for a standard PC COM port must have lines 2 and 3
swapped. It doesn’t require any handshaking. Pins 2 and 3 are wired the same
as a PC 9-pin COM port.
Connect to the serial port using any communication software. The scanner
serial port supports any baud rate from 9600 baud to 115 kbaud, with no
parity, 8 data bits, 1 stop bit. The scanner automatically detects the baud rate
being used.
1. Cycle power on the SLC.
2. When the SLC is powering up, the SYS LED flashes for 2 seconds.
While it is flashing, hit the exclamation mark (!) in your
communication software to tell the scanner that you want to upload
software. You may need to press it several times while the scanner
tries to autodetect the baud rate.
3. The LEDs flash alternately red to tell you the scanner is in system
configuration mode. The commands available are:
Command Description
96
11
Network Parameter Defaults
97
SST-PFB-SLC User’s Guide
The following tables show the default values assigned by the scanner for the
network parameters. The values depend on:
• the baud rate
• whether there are repeaters on the network
• whether there are FMS devices on the network
Idle time 1 is the time the scanner waits after it receives a response before it
sends, and corresponds to the Profibus Idle Time.
Idle time 2 is the time the scanner waits after it sends before it sends again,
and corresponds to the Profibus Max TSDR.
98
Network Parameter Defaults
No repeater, no FMS
9600 100 37 60 11 0
19200 100 37 60 11 0
93.75 K 100 37 60 11 0
187.5K 100 37 60 11 0
3M 400 45 250 11 3
6M 500 55 350 11 6
No repeater, FMS
9600 125 37 60 30 0
3M 400 45 250 11 3
6M 500 55 350 11 6
99
SST-PFB-SLC User’s Guide
Repeater, no FMS
9600 100 37 60 11 0
19200 100 37 60 11 0
93.75 K 100 37 60 11 0
187.5K 100 37 60 11 0
3M 400 45 250 11 3
6M 500 55 350 11 6
Repeater, FMS
Baud Slot Idle Idle Ready Qui
rate time time 1 time 2 time Time
9600 125 37 60 30 0
3M 400 45 250 11 3
6M 500 55 350 11 6
100
12
M0 and M1 Files
Note
The following is based on information in the SLC 500
Instruction Set Reference Manual, Allen-Bradley publication
1747.6.15, and is provided here for reference.
101
SST-PFB-SLC User’s Guide
M0 and M1 files are files that reside in specialty I/O modules only. There is
no image for these files in the processor memory. This means that when an
application running on the SLC accesses the data, the SLC must go out to the
module and read the data. The application of these files depends on the
function of the particular specialty I/O module. Both M0 and M1 files are
considered read/write files by the SLC processor.
M0 and M1 files can be addresses in your ladder program and they can also
be acted upon by the specialty I/O module, independent of the processor scan.
It is important that you keep the following in mind in creating and applying
your ladder logic.
During the processor scan, M0 and M1 data can be changed by the processor
according to ladder diagram instructions addressing the M0 and M1 files.
During the same scan, the specialty I/O module can change the M0 and M1
data, independent of the rung logic applied during the scan.
102
M0 and M1 Files
103
SST-PFB-SLC User’s Guide
Access Time
During the program scan, the SLC processor must access the scanner card to
read or write M0 or M1 data. This access time must be added to the execution
time of each instruction referencing M0 or M1 data. The SLC 500 Instruction
Set Reference Manual contains details about this access time.
104
A
Technical Data
105
SST-PFB-SLC User’s Guidel
CISPR22 Compliance
Marking of this equipment with the symbol indicates compliance
with European Council Directive 89/336/EEC - The EMC Directive. This
equipment meets or exceeds the following technical standards:
This device meets or exceeds the requirements of the following standard:
• EN 50081-2:1994 - “Electromagnetic compatibility - Generic
emission standard Part 2. Industrial Environment.”
• EN 50082-2:1995 - “Electromagnetic compatibility - Generic
immunity standard Part 2. Industrial Environment.”
Caution
This is a Class A product. In a domestic environment this
product may cause radio interference in which case the user
may be required to take adequate measures.
Note
To maintain compliance with the limits and requirements of
the EMC Directive it is required to use quality interfacing
cables and connectors when connecting to this device. Refer
to the cable specifications in this manual for selection of
cable types.
106
Index
A diagMasScanTime 91
diagMasterUpdate 91
APS 28 diagMinTokHldTime 91
ASPC2 PROFIBUS Controller Diagnostic Counters 89
Statistics 92 diagSlaveUpdate 92
diagTokHldTime 91
C DP Slave
disabling 56
COM ET 200 33 DP Slave Statistics 92
COM ET 200 Address Assignment
Errors 41 E
COM ET 200 Configuration Errors
40 email 5
COMM LED 24 errDblTok 92
errFifo 92
D errHsa 93
errInternal 93
diagConf 91 errInvReqLen 92
diagInd 91 errLanOffline 91
diagLay2MsgOk 74 errLasBad 93
diagLay2SapOk 74 errLay2MsgNotOk 74
diagMasMaxScanTime 92 errLay2SapNotOk 74
107
SST-PFB-SLC User’s Guide
errMasErr 91 Hyperterminal 42
errMasReConfig 91
errNetTout 93 I
errNotOk 91
Error Information Table 83 I/O Configuration
errPasTok 93 creating 31, 33
errRespErr 92 uploading 37
errRxOverun 92
errSlvErr 92 M
errSlvTout 92
errStn 93 Mapping Addresses 35
errSyniErr 92 masError 83
Extended Status Master Block Statistics 91
reading 83 Multiple Masters 35
Extended Status Table 82
P
F
pfbInitCtrs 89
Fatal Errors 42 PLC-500 Ladder Logistics 30
Fault Codes 43
FDL 60 S
FDL Diagnostic Counters 74
FDL Message Slave Error Register 88
sending 64 Slave Error Table 82
setting up 62 Slave Received Data 54
FDL Message Replies 65 Slave Status Register 87
FDL Messages 62 Slave Status Table 81
FDL Network Parameters 75 Slave Transmit Data 55
FDL SAP Receive Buffers 70 SLC Fault Codes 43
FDL SAP Transmit Buffers 71 SLC Modes 43
FDL SAPS 69 SLV_STS_ID_MISM 88
Firmware Version Number 80 SLV_STS_READY_TIME_MISM
Flash Programming Errors 41 88
Flex I/O 50 SLV_STS_RX_LEN_MISM 88
SLV_STS_TIME_OUT 89
G SLV_STS_TX_LEN_MISM 89
SLV_STS_UNSUP_REQ 88
General Statistics 91 slvError 88
slvStatus 87
H Status Register 80
SYS LED 24
help 5 System Overview 8
108
Index
Version Number 80
Web site 5
Wiring 22
Serial Port 23
109