Professional Documents
Culture Documents
Delta Tau Acc-72E
Delta Tau Acc-72E
^2 Accessory 72E
^4 3x0-603777-xUxx
^5 August 5, 2008
7 ADDED DIAGNOSTIC FLAG DESC. TO PROFIBUS & DEVICENET 06/16/06 C.PERRY A. SOTELO
8 ADDED DIAGNOSTIC FLAG DESC. TO CANOPEN & CONTROLNET 06/19/06 C.PERRY A. SOTELO
REMOVED APPENDIX A, UPDATED APPENDICES NAMING CONVENTION
9 ADDED SW1 DESCRIPTION 07/06/06 C.PERRY A. SOTELO
10 ADDED CC-LINK SECTION, APPENDICES B AND C 08/05/08 C.PERRY M. COGUR
UPDATED UBUS ADDRESSES, P. 5
UPDATED Profibus LED's, page22
UPDATED CC-LINK LED INFO, P. 66
Acc-72E User Manual
Table of Contents
INTRODUCTION ....................................................................................................................................................... 1
Configuring the Gateway ..........................................................................................................................................1
THEORY OF OPERATION ......................................................................................................................................3
UBUS Interface ......................................................................................................................................................... 3
How it Works ........................................................................................................................................................ 3
PMAC Memory ......................................................................................................................................................... 4
Consumed Process Data Flow ...................................................................................................................................4
Produced Process Data Flow .....................................................................................................................................5
UBUS Address .......................................................................................................................................................... 5
HARDWARE ............................................................................................................................................................... 7
SW1: DPRAM Address............................................................................................................................................7
CS16\ Identification ..................................................................................................................................................7
Identification Information .....................................................................................................................................7
Revision 100 Jumper Descriptions ............................................................................................................................ 8
Option Jumpers.....................................................................................................................................................8
Revision Jumpers ..................................................................................................................................................9
Product ID Jumpers ..............................................................................................................................................9
Revision 101 and Later Jumper Descriptions ............................................................................................................9
Option Jumpers.....................................................................................................................................................9
E-Point Jumper Settings ............................................................................................................................................9
All Revisions ......................................................................................................................................................... 9
CONNECTOR PINOUTS......................................................................................................................................... 10
Pinouts for Revision 100 ......................................................................................................................................... 10
Connector TB1 - CANOpen/DeviceNet Options – TB5 Combicon Female ........................................................ 10
Connector J3 & J4 – ControlNet Option – BNC Channel A & B ....................................................................... 10
Connector P1 – Profibus Options – DB9 Female............................................................................................... 10
Connector P2 Sycon Diagnostic – DB9 Male..................................................................................................... 11
Revisions 101 and Later Pinout Descriptions .......................................................................................................... 11
Connector J6 Sycon Diagnostic – IDC 10-pin Header....................................................................................... 11
DPRAM MEMORY MAP ........................................................................................................................................ 12
PMAC and Gateway Flags ................................................................................................................................. 13
DPRAM DATA PROCESSING ............................................................................................................................... 14
Bus Synchronous (Direct Transfer), Device Controlled ..................................................................................... 15
Buffered, Device Controlled ............................................................................................................................... 16
No Conscience, Uncontrolled (Direct Transfer) ................................................................................................. 17
Bus Synchronous (Direct Transfer), Host Controlled......................................................................................... 18
Buffered, Host Controlled ................................................................................................................................... 19
PROFIBUS ................................................................................................................................................................. 21
Profibus Specifications ............................................................................................................................................ 21
Profibus Layout Diagram ........................................................................................................................................ 22
Profibus LEDs ......................................................................................................................................................... 22
Diagnostic LEDs ................................................................................................................................................. 22
Profibus Fieldbus Configuration ............................................................................................................................. 23
Profibus Master Settings ..................................................................................................................................... 23
Profibus Slave Settings ....................................................................................................................................... 23
Profibus Sycon Configuration ................................................................................................................................. 24
Profibus Master Settings ......................................................................................................................................... 24
Configuring the Slave for Profibus .......................................................................................................................... 25
Downloading the Slave Configuration for Profibus ................................................................................................ 26
Testing and Monitoring the PMAC Gateway for Profibus ...................................................................................... 27
Table of Contents i
Acc-72E User Manual
ii Table of Contents
Acc-72E User Manual
INTRODUCTION
This manual provides the information needed to configure a fieldbus interface for the UMAC. The ACC-
72E is equipped with a “gateway” daughter card that allows the UMAC to send and receive data through
the supported fieldbus protocol. The gateway used is the COM series, provided by the Hilscher
Corporation. Relevant hyperlinks are provided in Appendix C for in-depth information regarding these
modules.
There are two connectors located on the front of the ACC-72E. For Profibus, DeviceNET, CANopen and
ControlNET options a male DB9 connector is specified as the Diagnostic Connector and provides a
RS232 link for the SyCon software. The second connector is referred to as the fieldbus connector as it
provides a means to become connected to the fieldbus link. The form factor of this connection is
dependent on which fieldbus protocol is being utilized. For the Control & Communication Link (CC-
Link) option, the first connector is 10 pin IDC male header which provides a RS232 link for
communication with the Compro software. The second connector is the 5 pin Combicon male connector
which is the fieldbus link.
The PMAC Gateway 3U supports the following protocols:
ProfiBus Master-Opt1 (Female DB9)
ProfiBus Slave-Opt2 (Female DB9)
DeviceNet Master-Opt3 (5-pin Terminal Block)
DeviceNet Slave-Opt4 (5-pin Terminal Block)
CANopen Master-Opt5 (Female DB9)
CANopen Slave-Opt6 (Female DB9)
ControlNET Adapter-Opt7 (BNC)
CC-Link Adapter-Opt11 (5-pin Terminal Block)
The protocol is dependent upon the equipped COM gateway. The hardware cannot be programmed for an
alternate protocol including master/slave. However, should the COM gateway be replaced with one
supporting another protocol, the baseboard would function properly as a communications link to UMAC
although the fieldbus connector might be incorrect for the new fieldbus.
Most gateway cards get their power from the UBUS back plane. However, the DeviceNet version
(Options 3 & 4) require an external 24Vdc power supply for the fieldbus.
Configuring the Gateway
There are ten steps in applying the Gateway for ProfiBus, DeviceNET, CANopen and ControlNET. The
CC-Link set up is explained in its section:
1. Install the SyCon and PEWIN software on the PC.
2. With the power off, plug the ACC-72E into the UBUS backplane.
3. Connect the diagnostic interface to the serial port on the PC.
4. Launch the SyCon setup utility from the PC.
5. Establish communications to the COM gateway.
6. Configure the fieldbus and download it to the card. (The default configuration can be used for
testing.)
7. Assign PMAC M -variables to access the fieldbus bytes at the appropriate Dual Port RAM address.
8. Manually test by setting byte values in PMAC, verifying that they get to the appropriate fieldbus
location. Also, check communication from the fieldbus to PMAC.
9. Configure the gateway’s fieldbus characteristics via the diagnostic port if required by the application.
Introduction 1
Acc-72E User Manual
10. Implement the assigned M-variables in PLCs or motion programs as required. Appendix A and B
provide examples for M-variable assignment and implementation. Appendix C provides hyperlinks
to Sycon configuration files for each fieldbus device, provided by Hilscher Corp.
SyCon is provided with the gateway module under license from Hilscher Corp. PEWin32 is a Delta Tau
product and normally is purchased with the first PMAC.
2 Introduction
Acc-72E User Manual
THEORY OF OPERATION
The PMAC Gateway 3U board is organized as a motherboard/daughter board system. The motherboard
contains the UBUS interface, diagnostics, and the fieldbus connections. The daughter board contains the
intelligence and the interface electronics required for each fieldbus. There is a different daughter board
for each fieldbus.
A micro controller on the daughter board implements each fieldbus communications protocol. Fieldbus
data is transferred to/from the fieldbus and placed in a dual-port ram (memory) on the daughter board.
The structure of this DPRAM is given later in this manual and is common for all the field buses
supported. There are two different DPRAMs used, a 2K-byte device and an 8K-byte device.
The PMAC side of the DPRAM is interfaced to the UBUS. PMAC programs access the fieldbus data by
reading or writing data to memory addresses corresponding to the location of the PMAC Gateway 3U
board’s DPRAM.
PMAC Gateway Version DPRAM Size
ProfiBus Master 2k bytes
ProfiBus Slave 2k bytes
ControlNet Adapter 2k bytes
CANopen Master 8k bytes
CANopen Slave 8k bytes
DeviceNet Master 8k bytes
DeviceNet Slave (COM-DNS) 2k bytes
CC-Link Slave (COM-C-CCS) 8k bytes
UBUS Interface
The UBUS is Delta Tau’s bus interface for the UMAC controller. The PMAC Gateway 3U maps to the
UBUS as a DPRAM style board. It occupies contiguous memory locations (both X and Y memory) of
the upper byte, of the 24-bit, DPRAM addresses. Both MEMCS0 and MEMCS1 chip selects are
supported.
M-variables are mapped to these locations to move data to and from the fieldbus and PMAC. In addition
to fieldbus data, a block of memory indicates the PMAC Gateway 3U board’s status. Examples of M-
variable definitions for each fieldbus are included in this document.
How it Works
1. The PMAC Gateway board organizes fieldbus bytes in a dual-port memory on the gateway module.
These fieldbus bytes are mapped into PMAC’s memory space via the UBUS interface.
2. PMAC M-Variables are used to move data to and from the fieldbus or to control the gateway board.
3. A switch on the PMAC Gateway board sets the address of the board in PMAC’s memory space.
4. The gateway board is configurable via a serial (RS232) port. SyCon is provided with the gateway
board for this purpose.
5. Diagnostic LEDs are provided for a visual indication of the board’s status.
Theory of Operation 3
Acc-72E User Manual
PMAC Memory
PMAC uses a DSP (Digital Signal Processor) with a 24-Bit architecture that uses two memory areas – Y
and X Memory. Memory is accessed in PMAC programs using M-variables. The definition of an M-
variable includes its number, address, offset, width and type. Refer to the PMAC Manual for additional
explanation of M-variables and their specification.
4 Theory of Operation
Acc-72E User Manual
UBUS Address
Switch SW1 on the PMAC Gateway controls the address of the PMAC Gateway 3U on the UBUS.
SW1 SW2 SW3 SW4 SW5 SW6 Address Range
ON ON ON ON ON ON Y/X:$6C000 - $6CFFF
ON OFF ON ON ON ON Y/X:$74000 - $74FFF
ON ON OFF ON ON ON Y/X:$6D000 - $6DFFF
ON OFF OFF ON ON ON Y/X:$75000 - $75FFF
ON ON ON OFF ON ON Y/X:$6E000 - $6EFFF
ON OFF ON OFF ON ON Y/X:$76000 - $75FFF
ON ON OFF OFF ON ON Y/X:$6F000 - $6FFFF
ON OFF OFF OFF ON ON Y/X:$77000 - $75FFF
The default location is:
SW1 SW2 SW3 SW4 SW5 SW6 Address Range
ON ON ON ON ON ON Y/X:$6C000 - $6CFFF
Note:
Do not set the PMAC Gateway to the DPR address range $6C000-$6CFFF if the
UMAC is equipped with Acc-54E. Acc-54E is set to this range as default.
Theory of Operation 5
Acc-72E User Manual
6 Theory of Operation
Acc-72E User Manual
HARDWARE
CS16\ Identification
The UBUS Specification provides for some plug and play features. Currently, on power up, PMAC tests
the valid UBUS base addresses to see if a board is present. One of the techniques used by PMAC is to
write patterns to UBUS memory locations and read them back. One reason we mapped the fieldbus bytes
to the upper byte of PMAC’s memory is that this memory is not written to during PMAC’s power up test
routines since DPRAM boards are assumed 16-bit not 24-bit boards. If the fieldbus bytes were mapped to
the lower bytes, fieldbus outputs could be turned on by the test patterns written to these locations.
Another feature of the UBUS is that memory locations selected by CS16\ (chip select 16...active low)
were reserved for board identification information.
Vendor ID (8 bits)
Options Present (10 bits)
Revision Number (4 bits)
Product ID (14 bits)
This information (36 bits) is accessible directly with I-Variables added in Firmware 1.936 or later. A
summary of the PMAC Gateway ID information is in the table below.
I39 controls the values reported.
I39= I4942…I4952 reports the following
0 36 bits (Vendor ID, Options present, Rev Number, Product ID)
1 8 bits (Vendor ID)
2 10 bits (Options Present) Reported by PMAC in HEX ($)
3 4 bits (Revision Number)
4 14 bits (Product ID)
5 19 bits (Card Base Address)
Identification Information
The Vendor ID is programmed into the PMAC Gateway. The Option Number, Rev Level and Part
Number are set by jumpers on the board. The settings below are given for reference only. There is no
need to change these from the factory settings. For jumper settings, refer to each individual section.
Revision Jumpers
Item Description Part Number JP10 JP11 JP12 JP13
Bit18 Bit19 Bit20 Bit21
1 ProfiBus Master 3A1-603777-10x ON OFF OFF OFF
2 ProfiBus Slave 3A2-603777-10x ON OFF OFF OFF
3 DeviceNet Master 3A3-603777-10x ON OFF OFF OFF
4 Device Net Slave 3A4-603777-10x ON OFF OFF OFF
5 CANopen Master 3A5-603777-10x ON OFF OFF OFF
6 CANopen Slave 3A6-603777-10x ON OFF OFF OFF
7 ControlNet Slave 3A7-603777-10x ON OFF OFF OFF
Product ID Jumpers
Item Description JP14 JP15 JP16 JP17 JP18 JP19 JP20 JP21 JP22 JP23 JP24 JP25 JP26 JP27
Bit22 Bit23 Bit24 Bit25 Bit26 Bit27 Bit28 Bit29 Bit30 Bit31 Bit32 Bit33 Bit34 Bit35
1 ProfiBus Master ON OFF OFF OFF OFF OFF ON ON OFF ON ON ON OFF OFF
2 ProfiBus Slave ON OFF OFF OFF OFF OFF ON ON OFF ON ON ON OFF OFF
3 DeviceNet Master ON OFF OFF OFF OFF OFF ON ON OFF ON ON ON OFF OFF
4 DeviceNet Slave ON OFF OFF OFF OFF OFF ON ON OFF ON ON ON OFF OFF
5 CANopen Master ON OFF OFF OFF OFF OFF ON ON OFF ON ON ON OFF OFF
6 CANopen Slave ON OFF OFF OFF OFF OFF ON ON OFF ON ON ON OFF OFF
7 ControlNet Slave ON OFF OFF OFF OFF OFF ON ON OFF ON ON ON OFF OFF
CONNECTOR PINOUTS
9 - - - X5 pin 9
1Note: Designation A and B at the PROFIBUS connector is not equal to the designation A and B of the RS485 driver
circuit of most manufacturers. The RXD/TXD-P signal and the RXD/TXD-N signal have a clear meaning.
9 - - - X3 pin 9
Described below are the alternate pinouts found on Gateway boards with Revisions 101 or later (released
1st quarter of 2006 – Assy. No 603777-101 and later).
9 - - - X3 pin 9
10 GND - Fieldbus module Ground X3 pin 10
Below is the memory map of relevant addresses found in the DPRAM of the gateway module. See page 3
of this module to determine whether the option ordered on the ACC-72E has a 8KByte cache or a 2KByte
cache. In order to read and write to these registers, define an M-variable that points to the upper 8 bits in
memory with an offset from the base address that is configured with SW1:
For example, if we were to look at the PMAC Flags on an ACC-72E Option 3 (DeviceNet Master) with a
base address of $6D000, we would enter the following into the operator terminal:
M1->X:$06D00,16,8,U
Offset Offset Usage Number of Comments
(8K DPRAM) (2K DPRAM) Bytes
000h-6FFH 000h-0FFh Send Process Data 512 bytes (2K) Send Process Data
3584 bytes(8K)
700h-7FFh 100h-1FFh Received Process Data 512 bytes (2K) Receive Process Data
3584 bytes(8K)
400h-51Fh 400h-51Fh Message Buffer 288 PMAC to Fieldbus
E90h-E91h 290h-291h Date[4] 4 bytes Gateway module Information
E92h-E93h 292h-293h DeviceNumber[4] 4 bytes
E94h-E95h 294h-295h SerialNumber[4] 4 bytes
E96h-E97h 296h-297h Reserved[4] 4 bytes
E98h-E99h 298h-299h PcOsName0[4] 4 bytes Gateway module Information
E9Ah-E9Bh 29Ah-29Bh PcOsName1[4] 4 bytes
E9Ch-E9Dh 29Ch-29Dh PcOsName2[4] 4 bytes
E9Eh-E9Fh 29Eh-29Fh OemIdentifier[4] 4 bytes
540H-065FH 540H-065FH Message Buffer 288 Fieldbus to PMAC
FF8h 3F8h RcsVersion integer Gateway Operating System
FF9h (y) 3F9h (y) RcsError byte Information
FF9h (x) 3F9h (x) HostWatchDog byte
FFAh (y) 3FAh (y) DevWatchDog byte
FFAh (x) 3FAh (x) SegmentCount byte
FFBh (y) 3FBh (y) DeviceAddress byte
FFBh (x) 3FBh (x) DriverType byte
FFCh (y) 3FCh (y) DpmSize Byte PMAC Gateway Information
byte
FFCh (x) 3FCh (x) DevType byte
FFDh-FFEh 3FDh-3FEh DevModel 3 bytes
DevIdentifier[3]
FFFH (y) 3FFH (y) Gateway Flags Byte CMD and Acknowledge
gateway to PMAC
Handshake
FFFH (x) 3FFH (x) PMAC Flags Byte CMD and Acknowledge
PMAC to gateway
Handshake
Note: Message Buffers are not applicable to Master devices.
The handshaking bits for the PMAC and gateway flags reside in the X and Y word, respectively, of the
last address in DPRAM memory. “D0” refers to the first bit in the address; since the byte resides in the
upper 8 bits of PMAC’s addressing scheme, D0 would be equivalent to bit 16, D1 to bit 17, etc. These
flags give the user the ability to control the flow of data from the PMAC to the gateway:
Since there are two processors attempting to access data registers in Dual-Ported Memory (PMAC and the
gateway) simultaneously, several handshaking modes can be used to guarantee data consistency. These
modes can be selected in Sycon under device settings. Not all modes are supported for every fieldbus
protocol. Consult the Sycon manual for each gateway module for handshaking capability. Should
handshaking not be necessary, collision circuitry on the gateway will in the very least guarantee
consistency within single byte boundaries. For this reason, the default configuration (No Conscience,
Uncontrolled) is recommended. Any handshaking is recommended for use only by advanced users that
have extensive knowledge of the underlying fieldbus communications protocol.
PdAck 1
PdCom 0
This handshake is used most commonly in a slave system that must guarantee that the data from
every fieldbus cycle must be given to the PMAC.
PdAck 1 1
PdCom 0 1
PdAck 1 1
PdCom 1 0
PdAck 1
PdCom 0
This handshake is commonly used in slave systems, where the slave gets an interrupt
with the next data exchange cycle.
This is the most common data transfer for IO devices requiring no handshake.
Attention: If two bytes belong together it is imperative that they are on the same bus cycle otherwise
this mode can't be used!
No data exchange.
PdAck 0
PdCom 0
PdAck 0
PdCom 0
PdAck 0 1
PdCom 1 1
This handshake is used most commonly in a master system with synchronous IO devices.
PdAck 0
PdCom 0
PdAck 0
PdCom 0
PdAck 0 1
PdCom 1 1
This is the easiest handshake in master and slave systems with a guaranteed consistence of the complete
process image.
PROFIBUS
Profibus represents one of the best-known industrial FieldBus protocols from Europe. Profibus can be
used in a very wide range of applications as a multi-application communications link for industrial
devices, as well as cell-level communication. Profibus is an established standard, first introduced in 1989.
The Profibus protocol was originally developed by the committee founded by the German government.
The resulting protocol was initially adopted as DIN standard 19245 and was then adopted as a European
Common Standard EC50170. Profibus connects to a wide variety of field devices including discrete and
analog I/O, drives, robots, MMI products, pneumatic valves, barcode readers, weigh scales, transducers,
and flow measuring equipment.
Profibus utilizes a non-powered two-wire (RS485) network.
It can transfer a maximum of 244 bytes data per node per cycle.
Communication rates are selectable but overall end-to-end network distance varies as indicated below:
12Mbps with a maximum distance of 100m
93.75Kbps at maximum distance of 1200m without repeaters
Profibus Specifications
Size 3Ux 4HP (UMAC Compatible)
Power Requirements +5vdc, 700ma (from UBUS)
Connector Types 96 Pin UBUS interface
9 Pin D-sub Male Diagnostic interface
9 Pin D-Profibus interface
Dual Port Memory Size 2048 Bytes (2K)
Communication Maximum Size 368 Bytes
Inputs 244 Bytes
Outputs 244Bytes
I/O Capacity 1k Bytes
Baud Rate(s) 9.6k up to 12 Mbaud
Max. Nodes 126
Diagnostic RS232C Port Yes
Program Storage Flash Memory
Watchdog Timer Yes
Operating Temperature 0-55Deg C
Profibus Chip Technology Master = ASPC2
Slave = SPC3
Lab Certified Yes
Profibus 21
Acc-72E User Manual
1 3 CBA
E1
GND GND GND +5V
1
JP1
JP2
JP3
Diagnostic P2 JP4
Interface JP5
JP6 J1
JP7
JP8 1 8
UBus Interface
JP9
JP10
JP11
JP12
P1
JP13
JP14
JP15
JP16 1
Profibus P2 JP17
JP18
E4
3
JP19
JP20 E6
E2
JP21
JP22 E7
JP23
JP24 E5
JP25
Diagnostic D1
JP26
1 2 34 5 6 TB2
Led's D2
JP27
SW1
OFF 3 2 1 CBA
Profibus LEDs
Diagnostic LEDs
Diagnostic LEDs are provided to give visual indications of board status. The green LEDs are easy to
understand. If everything is okay, the two inner LEDs will be ON. Other states are discussed below. The
yellow LEDs are used to indicate more states than the green ones. Look for patterns as described below
to decipher the meaning.
Green LED D1-A
Not used on Profibus version
Green LED D1-B
ON = Communication Active
OFF = Communication Stopped
Flashing = Parameter Error (i.e. Mismatch)
d c b a Green LED D1-C
D1 ON = Ready
OFF = Hardware Error or no power
D2
Flashing Cyclic = Bootstrap loader active
Flashing Non-Cyclic = System or hardware error
Green LED D1-D
Not used on Profibus version
Yellow LED D2-A
ON = Fieldbus Data Exchange Occurring
OFF = No Fieldbus Data Exchange Occurring
Diagnostic Yellow LED D2-B
LEDs
ON = Communication Error
OFF = No Communication Error
22 Profibus
Acc-72E User Manual
The fieldbus characteristics of the PMAC Gateway are defined in GSD files that come with the SyCon
software. The Profibus master is defined in HIL 7506.GSD and the Profibus slave is defined in
HIL_7501.GSD. The configuration/diagnostic port on PMAC Gateway provides a convenient method for
configuration and for monitoring the fieldbus side of the PMAC Gateway. The following provides an
example of how to use Sycon and the diagnostic port to configure and monitor the PMAC Gateway.
Profibus 23
Acc-72E User Manual
\
Profibus Master Settings
To enter the master settings, select Settings – Master Settings or use the right mouse button at the DP
device. The Master settings contain parameters which define the behavior of the PMAC Gateway
DPRAM.
24 Profibus
Acc-72E User Manual
Set the baud rate that the PMAC Gateway should use by selecting the master and selecting Bus
Parameter under Settings. The baud rate is selected from the dialog box shown below:
Repeating the process but selecting Slave Configuration will result in the screen shown below. The
primary purpose of this screen is to define the type of data being communicated to/from the master and
the PMAC Gateway. The table in the middle of the screen contains all the possible settings for inputs
(Send Process Data) and outputs (Receive Process Data). The lower table displays the current
configuration. 184 bytes of input and output were configured when the PMAC Gateway was tested at the
factory. This is sufficient for many applications.
Profibus 25
Acc-72E User Manual
If more or less is needed, delete the current setup by selecting the element to change and selecting
Remove Module. Select the new configuration from the middle table and select Append Module.
26 Profibus
Acc-72E User Manual
Once communications are established to all devices in the fieldbus network, diagnostic flags build into the
gateway module can be monitored by PMAC to determine the status of the network during online
communications.
Profibus 27
Acc-72E User Manual
Global bits:
28 Profibus
Acc-72E User Manual
The bit field serves as collective display of global notifications. Notified errors
can either occur at the DEVICE itself or at the slaves. To distinguish the different
errors the variable err_rem_adr contains the error location (bus address). If more
than one error is determined, the error location will always show the lowest faulty
bus address.
Variable DPM_state
This variable represents the main state of the master system. Following values are
possible:
Variable Err_rem_adr
Some bits in the Global_Bit field could indicate errors in the network or in the
DEVICE itself.. In this case, the variable Err_rem_adr represents the source of the error. If the source
where the error was detected in the DEVICE itself., then this flag contains the
value 255. If the error was detected in another device, the station number (between 0 and 125) will be the
value.
Profibus 29
Acc-72E User Manual
Static Diagnosis
Slave diagnostic flags are being sent.
Data exchange
The data exchange mode is active. The
user-data will be transferred on the bus
between the master and the slave.
30 Profibus
Acc-72E User Manual
DEVICENET
DeviceNet is a low cost communications link that connects industrial devices to a network and eliminates
expensive hardwiring. It is based on a broadcast-oriented communications protocol called the Controller
Area Network (CAN). The CAN protocol was originally developed by Bosch for the European
automotive market for replacing expensive wiring harnesses with low cost network cable on automobiles.
The CAN interface and protocol has fast response and high reliability for applications such as controlling
anti-lock brakes and airbags.
DeviceNet utilizes a powered four-wire network.
It can transfer up to eight bytes of data per node per communication cycle.
Communication rates are configurable as indicated below:
125 Kbps with maximum distance of 500 meters
250 Kbps with maximum distance of 250 meters
500 Kbps with maximum distance of 100 meters
Although multiple masters are possible, usually a DeviceNet network consists of one master and
many slaves.
DeviceNet Specifications
Size 3Ux 4HP (UMAC compatible)
Power Requirements +5Vdc, 500ma (UBUS)
+24Vdc, 50ma (from external power supply)
Connector Types – Rev 100 96 Pin UBUS interface
9-Pin D-Male Diagnostic interface
5 Position TB connector
Dual Port Memory Size Slave (COM-DNS) -- 2048 Bytes (2K)
Slave (COM-C-DNS) – 8192 Bytes (8K)
Master – 8192 Bytes (8K)
Communication Maximum Size 255 Bytes
Inputs 255 Bytes
Outputs 255 Bytes
I/O Capacity 1k Bytes
Baud Rate(s) 125K, 250K, 500K
Maximum Nodes 64
Diagnostic RS232C Port Yes
Program Storage Flash Memory
Watchdog Timer Yes
Operating Temperature 0-55Deg C
Chip Technology SJA1000
Lab Certified Yes
DeviceNet 31
Acc-72E User Manual
DeviceNet LEDs
Diagnostic LEDs
Diagnostic LEDs are provided to give visual indications of board status. The green LEDs are easy to
understand. If everything is okay, the two inner LEDs will be ON. Other states are discussed below.
Green LED D1-A Not used.
Green LED D1-B ON = DeviceNet Communication Active
OFF = DeviceNet Communication Stopped
Flashing = DeviceNet Parameter Error (i.e. Mismatch)
Green LED D1-C ON = Ready
OFF = Hardware Error or no power
Flashing Cyclic = Bootstrap loader active
d c b a Flashing Non-Cyclic = System or hardware error
D1
Green LED D1-D Not used
D2 Yellow LED D2-A ON = Normal no fault
OFF = Fault
Flash = Fault
Yellow LED D2-B ON = Critical link failure
OFF = Normal
Flash = Connection time out
Yellow LED D2-C ON = On line link OK
OFF = Device not powered – off line
Diagnostic Flash = Online not connected
LEDs
Yellow LED D2-D ON = not applicable
OFF = Normal
Flash = Configuration failure
32 DeviceNet
Acc-72E User Manual
DeviceNet 33
Acc-72E User Manual
The fieldbus characteristics of the PMAC Gateway are defined in EDS files that come with the SyCon
software. The DeviceNet master is defined in COMDNM.EDS and the DeviceNet slave is defined in
COMDNS.EDS. The configuration/diagnostic port on PMAC Gateway provides a convenient method for
configuration and for monitoring the fieldbus side of the PMAC Gateway. The following provides an
example of how to use Sycon and the diagnostic port to configure and monitor the PMAC Gateway.
DeviceNet Sycon Configuration
To insert a new master in the configuration, select the Master item in the Insert menu or click the icon in
the left corner of the screen. In the Insert Master window, add COM-DNM to the configuration.
34 DeviceNet
Acc-72E User Manual
Assign the addresses of the module data in the process image for each module in the lower table. This is
set in the columns Type and Addr for input and output separately.
The I/O address can be entered manually or set automatically by SyCon using the Auto Addressing flag,
which must be set in the Master Settings window.
Caution:
If Watchdog Control is switched off, it is possible that the slave will not reset slave
outputs, even though the communication is broken.
DeviceNet 35
Acc-72E User Manual
DeviceNet Debugging
After an actual master has been selected, start the debug mode. From this time, SyCon requests the status
of all slaves of the actual master. If there is an error on a slave, the bus line to this slave is drawn in red.
Otherwise, it is green. In addition, SyCon displays the Diagnostic message if the slave signals diagnostic
information. This information is displayed by clicking with the mouse at the corresponding device in
debug mode.
To activate the debug mode, select Online - Start Debug Mode. The Online - Device Diagnostic menu
activates the DP slave diagnostic. To end the Debug Mode, select Online - Stop Debug Mode.
DeviceNet Auto Network Scan
The current version of Sycon and PMAC Gateway firmware supports automatic network scan. Once the
Master is configured, choose Automatic Network Scan from the Online pull down menu. The Master
(PMAC Gateway) will poll the slave devices from the lowest MACID to the highest. Once the scan is
finished, it will display a list of devices that it found. To accept this configuration, select Automatic
Configuration from the dialog box. Typically, the chosen connection is polling so it should be changed
in the Chosen Configuration. Column before it is accepted.
Download the new configuration to the master to establish communication. Usually, this is the easiest
way to get a network up and running.
Once communications are established to all devices in the fieldbus network, diagnostic flags build into the
gateway module can be monitored by PMAC to determine the status of the network during online
communications.
Diagnostic flags are not available for ACC-72E Option 4 (DeviceNet Slave).
36 DeviceNet
Acc-72E User Manual
bGlobalBits
The bit field serves as collective display of global event indications. Notified errors
can either occur at the DEVICE itself or at the handled devices. To distinguish
the different errors the variable Err_dev_adr contains the error location
(address=MAC-ID). If more than one error is determined, the error location will contain
the device with lowest MAC-ID.
Variable bDNM_State
This variable represents the main state of the DEVICE system. Following values
are possible:
DeviceNet 37
Acc-72E User Manual
Variable bErrDevAdr
If either the bits CTRL, ACLR or NDATA are set, this variable is set to the lowest MAC-ID location
where the error subsides. If the source of the error is inside the DEVICE itself,
the value 255 is written in. For all other instances the faulty device’s MAC-ID is
written in directly.
38 DeviceNet
Acc-72E User Manual
CANOPEN
CANopen is a network concept based on the serial bus system Controller Area Network (CAN) and the
CAN Application Layer (CAL). Developed originally for passenger cars, the CAN two-wire bus system is
already in use in over one million industrial control devices, sensors and actuators. Hallmarks of the
internationally standardized bus system (ISO 11898) are its simplicity, high transmission reliability and
extremely short reaction times. Many major semiconductor manufacturers sell CAN chips, and the fact
that millions of them are used in automobiles guarantees low chip prices and long-term availability.
CANopen permits both cyclic and event-controlled communication. This makes it possible to reduce the
busload to a minimum and achieve high communication performance at relatively low baud rates.
In CANopen, timing behavior can be adapted individually to the particular tasks of the stations involved.
This means it is not essential for the entire communication system to have higher performance if it is only
required by certain participants. In addition, an automation task may be divided up among several
CANopen participants to make optimum use of the power of control devices already in the network, and
this can be increased gradually by additional participants.
CANopen allows the creation of inexpensive de-centralized control systems, distributed input/output
systems, and networked sensor/actuator systems.
CANopen Specifications
Size 3Ux 4HP (UMAC Compatible)
Power Requirements +5Vdc, 700ma (from UBUS)
Connector Types 96 pin UBUS Interface
9-Pin D-Male Diagnostic Interface
9-Pin D-CANopen Interface
Dual Port Memory Size 8192 bytes (8k)
Communication Maximum Size 64 bytes
Inputs 32 bytes
Outputs 32 bytes
I/O Capacity 7k bytes
Baud Rate(s) 10k up to 1 Mbaud
Maximum Nodes 125
Diagnostic RS232C Port Yes
Program Storage Flash Memory
Watchdog Timer Yes
Operating Temperature 0-55Deg C
Chip Technology SJA1000
Lab Certified Yes
CANopen 39
Acc-72E User Manual
1 3 CBA
E1
GND GND GND +5V
1
JP1
JP2
JP3
Diagnostic P2 JP4
Interface JP5
JP6 J1
JP7
JP8 1 8
UBus Interface
JP9
JP10
JP11
JP12
P1
JP13
JP14
JP15
JP16 1
Profibus P2 JP17
JP18
E4
3
JP19
JP20 E6
E2
JP21
JP22 E7
JP23
JP24 E5
JP25
Diagnostic D1
JP26
1 2 34 5 6 TB2
Led's D2
JP27
SW1
OFF 3 2 1 CBA
CANopen LEDs
Diagnostic LEDs
Diagnostic LEDs are provided to give visual indications of board status. The green LEDs are easy to
understand. If everything is okay, the two inner LEDs will be ON. Other states are discussed below.
Green LED D1-A Not used.
Green LED D1-B ON = CANOpen Communication Active
OFF = CANOpen Communication Stopped
Flashing = CANOpen Parameter Error (i.e. Mismatch)
Green LED D1-C ON = Ready
d c b a OFF = Hardware Error or no power
D1
Flashing Cyclic = Bootstrap loader active
D2 Flashing Non-Cyclic = System or hardware error
Green LED D1-D Not used
Yellow LED D2-A OFF = Off line
Flashing Cyclic = Online link OK
Flashing Non-Cyclic = Online not connected
Yellow LED D2-B ON = Critical link failure
OFF = Normal
Flash = Connection time out
Diagnostic
LEDs Yellow LED D2-C Not used on the CANOpen version
Yellow LED D2-D Not used on the CANOpen version
40 CANopen
Acc-72E User Manual
CANopen 41
Acc-72E User Manual
The fieldbus characteristics of the PMAC Gateway are defined in EDS files that come with the SyCon
software. The CANopen slave is defined in COMCOS.EDS. The configuration/diagnostic port on
PMAC Gateway provides a convenient method for configuration and for monitoring the fieldbus side of
the PMAC Gateway. The following section provides an example of how to use Sycon and the diagnostic
port to configure and monitor the PMAC Gateway.
CANopen SyCon Configuration
To insert a new master in the configuration, select the Master item in the Insert menu or click on the
icon in the toolbar menu.
42 CANopen
Acc-72E User Manual
CANopen 43
Acc-72E User Manual
Once communications are established to all devices in the fieldbus network, diagnostic flags build into the
gateway module can be monitored by PMAC to determine the status of the network during online
communications.
44 CANopen
Acc-72E User Manual
Global_bits
The bit field serves as collective display of global notifications. Notified errors
can either occur at the DEVICE itself or at the nodes. To distinguish the different
errors the variable err_node_adr contains the error location ( address). If more than
one error is determined, the error location will always show the lowest faulty bus
address.
Variable CAN_state
This variable represents the main state of the master system. Following values are
possible:
Variable Err_Node_adr
If either the bits Ctrl, Aclr or NData are set, this variable is set to the lowest node
CANopen 45
Acc-72E User Manual
location of the error. If the source of the error is determined inside the DEVICE
itself, the value 255 is written in. For all other instances, the faulty node address is displayed.
bNmtState
bBusEnable
usBusEventCnt
This variable holds a counter for bus events detected by the CAN chip. It includes
warnings, bus off situations and receive queue overruns.
usBusOffCnt
Bus off events indicate severe communication problems on the CAN bus. When the
CAN chip detects such a situation it goes to disabled state and is not involved in
bus operations anymore. To get it operative again it must be re-initialized which is
done by the firmware automatically.
46 CANopen
Acc-72E User Manual
CONTROLNET
ControlNet is a real-time, control-layer network providing high-speed transport of both time-critical I/O
data and messaging data, including upload/download of programming and configuration data and peer-to-
peer messaging, on a single physical media link. ControlNet’s high-speed (five Mbits/sec) control and
data capabilities enhance I/O performance and peer-to-peer communications.
The distance of a segment depends on the number of nodes, respectively on the number of taps. There is
no minimum length requirement. The maximum allowable total length of a segment is 1000 m with two
taps connected. Each additional tap decreases the maximum length of a segment by 16.3 m. From this it
follows the number of taps allowed on a segment (48 with a maximum length of 250 m). Install a
repeater if the system requires more than 48 taps per segment, or a longer segment becomes essential. For
each segment of the ControlNet system, 75 Ohm terminators are needed.
ControlNet allows multiple controllers to control I/O on the same wire. This provides an advantage over
other networks, which only allow one master controller on the wire. In addition, ControlNet allows
multicast of both inputs and peer-to-peer data, thus reducing traffic on the wire and increasing system
performance.
ControlNet Specifications
Size 3Ux 4HP (UMAC Compatible)
Power Requirements +5vdc, 700ma (UBUS)
Connector Types 50 Pin JEXP (Expansion Port) interface
9 Pin D-Male Diagnostic interface
BNC (ControlNET Channel A)
BNC (ControlNET Channel B)
Dual Port Memory Size 2048 Bytes (2K)
Process Data Maximum Size
Inputs 510 Bytes
Outputs 510 Bytes
I/O Capacity 1020 Bytes
Baud Rate(s) 5 Mbaud
Maximum Nodes 99
Diagnostic RS232C Port Yes, on standard board
No, on NAP version
Program Storage Flash Memory
Watchdog Timer Yes
Operating Temperature 0-55Deg C
ControlNet Chip Technology Rockwell CNA 10
Network Access Port No on standard board
Yes on NAP version
Lab Certified Yes
ControlNet 47
Acc-72E User Manual
1 3 CBA
E1
GND GND GND +5V
1
JP1
JP2
JP3
Diagnostic P2 JP4
Interface JP5
JP6 J1
JP7
JP8 1 8
UBus Interface
JP9
JP10
JP11
JP12
P1
JP13
Channel A J3 JP14
JP15
JP16 1
JP17 E4
JP18 3
JP19
JP20 E6
Channel B J4 E2
JP21
E7
JP22
JP23
JP24 E5
JP25
Diagnostic D1
JP26
1 2 34 5 6 TB2
Led's D2
JP27
SW1
OFF 3 2 1 CBA
d c b a
Green LED D1-C ON = Ready
D1 OFF = Hardware Error or no power
Flashing Cyclic = Bootstrap loader active
D2
Flashing Non-Cyclic = System or hardware error
Green LED D1-D Not used on the ControlNet Version
Diagnostic
LEDs
48 ControlNet
Acc-72E User Manual
The yellow LEDs operate in pairs. The following pairs are used:
D2-A, B, C, D can operate together to indicate global of Network faults
D2-A and D2-D can operate in pairs to indicate conditions of Channel B
D2-B and D2-C can operate in pairs to indicate conditions of Channel B
Global (Network) Fault Indications
Pattern D2-D D2-C D2-B D2-A Meaning
1 OFF OFF ON ON Self Test alternates between pattern 1 and 2
2 ON ON OFF OFF
ControlNet 49
Acc-72E User Manual
ControlNet Settings
The fieldbus side of the PMAC Gateway conforms to the ControlNet fieldbus standard. The
characteristics of the fieldbus side of the PMAC Gateway are configurable from the configuration port on
the PMAC Gateway using the Sycon Configuration software shipped with the PMAC Gateway. The
following tables summarize the characteristics that can be configured:
Device Settings
Item Parameter Setting as Shipped
1 Handshake Mode No consistence, uncontrolled
2 Behavior after power up Automatic release of communication by the device
3 Watchdog time 1000 msec
4 Addressing Mode Byte addresses
5 Storage Format Little Endian
6 General Mac ID = 3
Data Settings
Parameter Setting as Shipped Range
Number of input words 215 434 words total
Number of output words 215 (inputs + ouputs)
Unscheduled Services
Length of file 3 0 0-1000 words
Length of file 4 0 0-1000 words
Length of file 5 0 0-1000 words
Length of file 6 0 0-1000 words
The fieldbus characteristics of the PMAC Gateway are defined in EDS files that come with the SyCon
software. The ControlNet slave is defined in COMCNS.EDS. The configuration/diagnostic port on
PMAC Gateway provides a convenient method for configuration and for monitoring the fieldbus side of
the PMAC Gateway. The following section provides an example of how to use Sycon and the diagnostic
port to configure and monitor the PMAC Gate
ControlNet SyCon Configuration
Start SyCon and start a new setup file.
50 ControlNet
Acc-72E User Manual
Choose Insert-Device or click the icon in the left corner of the screen. Add COM-CNS as the selected
devices and press OK.
ControlNet 51
Acc-72E User Manual
52 ControlNet
Acc-72E User Manual
Establish communications to the PMAC Gateway in Settings – Device Assignment. Select CIF Serial
Driver.
Configure the settings of the PMAC Gateway. In the Device Configuration, the MAC ID is equivalent to
the Node number. The Input Length and Output Length will correspond to the Input and Output settings
in ControlLogix.
ControlNet 53
Acc-72E User Manual
Download the configuration to the PMAC Gateway. Note that downloading the configuration to the
PMAC Gateway saves it automatically and resets the PMAC Gateway.
54 ControlNet
Acc-72E User Manual
In Module Properties, assign a name and description for the device. Indicate what slot it is in the rack and
what node is selected by the switch.
Right click on the ControlNet Bridge that was just inserted and select New Module. Select module type
CONTOLNET-MODULE with description Generic ControlNet Module. This will be the PMAC
Gateway ControlNet adapter. In Module Properties, enter a name and description for the device. Select
COMM Format Data-INT and indicate what node was assigned during the software configuration with
SyCon.
ControlNet 55
Acc-72E User Manual
In the Connection Parameters box, the Assembly Instances and Sizes must be configured. The Input is
Assembly Instance=1 and Size= Inputs +2. The Output is Assembly Instance=2 and Size= Outputs+0.
The size of the inputs and outputs correspond to the Input Length and Output Length that was assigned
for the Scheduled Services with SyCon and then downloaded to the PMAC Gateway ControlNet adapter.
So if the Input Length = 215 words and Output Length = 215 words with the SyCon software, then the
Size in RSLogix 5000 would be Input = 217 and Output =215. Lastly for Configuration, Assembly
Instance = 4 and Size =0. Then select Next.
Set the Requested Packet Interval rate (RPI). In this example, it is set at 5 ms. The RPI can be set at
different rates but it cannot be faster the slowest RPI. This value is sometimes set by trial and error.
Select the Finish button.
56 ControlNet
Acc-72E User Manual
Return to the ControlNet Bridge, right click, and select Properties. Go to the RSNetWorx tab and create
a ControlNet_file. Select Schedule a ControlNet Network and click Apply.
Now select View and Edit the ControlNet Network and click the network icon button the left.
Once RSNetworx has launched, a network must be selected. Select the Online icon as indicated below,
or select Online from the Network menu.
ControlNet 57
Acc-72E User Manual
In the Browse for Network box, select the communication path the network is using. Find the ControlNet
Bridge that was selected to communicate to the PMAC Gateway ControlNet adapter and select the
network below it. Then click the OK button.
The ControlNet network will appear with the ControlNet devices along with the Allen Bradley rack.
58 ControlNet
Acc-72E User Manual
Now select Edits Enabled and the Online/Offline mismatch dialog box will appear. Select Use offline
data (download) and click OK.
Return to RSLogix 5000, go to the Communications menu and select Download. If the communications
path has not been specified to the ControlLogix controller then the path must be selected in Who Active.
Once the path to the controller has been specified, then select Download.
ControlNet 59
Acc-72E User Manual
Return to RSNetworx. With Edits Enabled, the ControlNet network can be saved by selecting the Save
icon. The network can be optimized while the Edits are enabled by changing the Network Parameters in
Properties under the Network Menu. These changes will take effect only after a save is issued. Then the
Network is now configured. Return to RSLogix 5000 and save the file.
60 ControlNet
Acc-72E User Manual
Once communications are established to all devices in the fieldbus network, diagnostic flags build into the
gateway module can be monitored by PMAC to determine the status of the network during online
communications.
Global_Bits
ControlNet 61
Acc-72E User Manual
Variable Cns_State
This variable represents the main state of the DEVICE system. Following values
are possible:
00h: state OFFLINE
40h: state STOP
80h: state CLEAR
C0h: state OPERATE
Mac_ID
CNet_State
This variable represents the current status of the DEVICE. Its value changes as
the state of the DEVICE changes.
62 ControlNet
Acc-72E User Manual
ControlNet 63
Acc-72E User Manual
CC-LINK
CC-Link (Control & Communication Link) is a Fieldbus network that processes both cyclic I/O data and
acyclic parameter data at high speed. CC-Link was developed by Mitsubishi and today, it is managed by
the CC-Link Partner Association (CLPA). CC-Link is a very popular network in Asia. Worldwide, it is
used for time critical applications based on Mitsubishi Automation technology. CC-Link products are
certified by the CLPA, guaranteeing worldwide compatibility
CC-Link is a Fieldbus for high-speed communication between controllers and intelligent field devices
like I/Os, sensors and actuators. In networks with up to 65 stations, it provides reliable communication
without any need for repeaters. Supported by a broad spectrum of automation equipment from many
manufacturers, CC-Link provides communication facilities for integrated and efficient production or
process facilities via a single cable. CC-Link includes many advanced features such as stand-by master
function, detach and auto return Slave function as well as auto recovery from communication fault
functions.
CC-Link incorporates an RS-485 topology and runs on a 3-conductor twisted pair cable. It can
communicate to multiple devices on a single wire with a maximum length of 1.2 km at 156 kbaud without
a repeater. CC-Link can communicate at speeds of up to 10 Mbaud at shorter wire lengths.
CC-Link Specifications
Size 3U x 4HP (UMAC Compatible)
Power Requirements +5VDC, 500 mA (UBUS)
Connector Types 96 Pin UBUS interface
10-pin IDC Male Diagnostic interface (ComPro)
5 Position TB Connector
Dual Port Memory Size 8192 Bytes (8k)
Communication Maximum Size 96 Bytes
Inputs 48 Bytes
Outputs 48 Bytes
I/O Capacity 1024 Bytes (1k)
Baud Rate 125 k, 625k, 2.5M, 5M, 10M
Maximum Stations 64
Diagnostic RS232 Port Yes
Program Storage Flash Memory
Watchdog Timer Yes
Operating Temperature 0-45 Degrees Celsius
Chip Technology EC1
Lab Certified Yes
64 CC-Link
Acc-72E User Manual
CC-Link LEDs
Diagnostic LEDs
Diagnostic LEDs are provided to give visual indications of board status. The green LEDs are easy to
understand. If the gateway card’s b green LED and the daughter board green LED cyclic at the same
frequency, it means the hardware is working properly. When the CC-Link cable is connected, both
LED’s will turn on and the fieldbus communications will be active. All the LED states are discussed
below.
CC-Link 65
Acc-72E User Manual
66 CC-Link
Acc-72E User Manual
.
Only use cable types approved for CC-Link networks. CC-Link specifies shielded three-core Twisted
Pair cables. It is recommended to use only one type of cable for an installation.
Please ensure that termination resistors are available at both ends of the cable. The value of the
termination resistor depends on the used type of cable and can be 100, 110, and 130 ohms.
The fieldbus side of the 3U PMAC Gateway conforms to the CC-Link fieldbus standard. The
characteristics of the fieldbus side of the 3U PMAC Gateway are hardware configurable. The daughter
board, L0401813 by Hilscher, plug into the C-X1 and C-X2 connectors on the 3U PMAC Gateway
mother board. The switch settings and the baud rate settings are shown in the following sections. CC-Link
does not need a particular software configuration to provide communication. The hardware starts
communicating at power up. Once the PMAC gateway card DPRAM registers are set up correctly,
PMAC reads or writes data from/to the Fieldbus via CC-Link. This procedure is given in Appendix B.
CC-Link Fieldbus Switch Settings
There are three switches on the CC-Link Fieldbus, daughter board which are shown in the following
picture.
CC-Link 67
Acc-72E User Manual
The first and second switch set the CC-Link slave station address 10x and 1x respectively. The CC-Link
slave station address can be set the range of 1 to 64. The third switch sets the baud rate to operate at the
CC-Link network. It can be set the value of 0 to 4. The available baud rate settings are given in the next
discussion.
.
CC-Link Fieldbus Baud Rate Settings
The CC-Link Fieldbus can be operated with five different baud rate settings. The valid baud rates are:
68 CC-Link
Acc-72E User Manual
Operating instructions
SyCon 2
Overview
SyCon is a universal fieldbus configuration tool developed by Hilscher Corp., which we are
initially using to configure the PmacGate-Way. SyCon can configure the fieldbus systems like
ProfiBus, Interbus, SDS, DeviceNet, CANopen, etc. with a common tool that provides consistent
user interface for all protocols.
SyCon allows you to configure all master and slave devices using one tool. SyCon checks the
dependencies between the devices, checks for configuration conflicts and warns you of possible
errors. Some protocols support standardized files containing information about all features
and limitations of the slave device. SyCon uses these files for the configuration.
After the configuration, you can switch SyCon into a diagnostic mode. In diagnostic mode, you
can watch all status information of devices connected to the network. For example, you can
see the node list or slave diagnostic information. If a slave is not operating correctly it will be
displayed in a different color, normally red.
SyCon consists of a universal.exe - file and several specific protocol DLLs. Most customers
will use SyCon for only one bus system however SyCon can be expanded later by adding one or
more DLLs for other available protocols.
2. Insert the installation disk 1 (or CD) of SyCon in your floppy or CD drive.
4. Follow the instructions of the installation program and answer each question with
OK or Next. The installation program will ask you for additional components
(fieldbus system and device driver) to install. Install all parts. Without installing a
fieldbus system SyCon is not able to run the configuration. The device driver is
necessary to access the PC interface card in your system. Of course you can install
these components by using their own setup programs later. Depending on the
selected components (fieldbus/device driver) insert the disk and the corresponding
setup program will be started automatically.
If you have a SMS-CIF30-DPM and you have not changed the jumpers of the board, you can
use the default value in the window Driver Setup Windows NT. Otherwise, this must be done
according the selected start address of the CIF board and the type of the CIF. If you have the
SMS-CIF30-DPM then the DPM size is 2 KByte. If the board is the SMS-CIF30-PB then you
have to select 8 KByte. If you have jumpered an interrupt on the board then you have to
select the Interrupt number. The default interrupt is 7. After you have changed the settings
you must reboot your PC to activate the parameters.
SyCon helps you to configure your ProfiBus DP system quickly & easily.
1. First select the fieldbus system and create a new file. Select the File-New-
ProfiBus menu item. SyCon will start the configuration mode and opens
the window for the bus. Insert all the Masters that you will have on the
bus. If you do not find your Master in the list choose Unknown FMS
Master, Unknown DP Master, or Unknown Combi Master ProfiBus-DP
2. First you have to insert the DP slaves and assign them to their master.
The next step is to configure these DP slaves with the actual I/O modules,
and their parameter data. Be sure that you have selected the right
addressing mode.
3. Save your configuration. Select the board as actual device, which you
want to configure and download(s) to all the CIF devices. Connect the bus
cable, and test the communications using the I/O-Monitor for DP, and the
FMS Monitor for FMS.
GSD Files
Each ProfiBus-DP manufacturer uses standard device description files to define the ProfiBus-
DP device on the network. These definitions are called GSD files. The set of device
description files (GSD file) build the device database.
All possible devices the configuration or GSD files must be in the GSD directory during the
startup of the SyCon software. If you need another GSD file during SyCon runtime you have to
copy this file with the File - Copy GSD menu item.
The GSD directory path is changeable. To modify it from the default to an another path use
the Settings – Path menu. All GSD files have to be present in this directory for SyCon to
recognize the device.
At the beginning of a design, you must create a new configuration file, which is done in the File
– New menu item. You can select between the different fieldbus systems Select ProfiBus.
The name for the configuration can be assigned when you leave the system configurator or
using the File - Save AS menu.
Insert Master
To insert a new master in the configuration select the Master item in the menu Insert or click
the following icon:
The mouse cursor changes to the insert master cursor. Click on that position, where you want
to insert the new master. A dialog box appears where you have to select one or more masters.
You can select the master types:
ProfiBus-DP Master
Settings
Bus Parameter
The bus parameter is normally the baud rate of the fieldbus network, which is determined by
the master controller. Each fieldbus has a set of different baud rate options.
In a ProfiBus-DP system, the only parameter, which is required, is the baud rate. The baud
rate of the ProfiBus is common for all bus nodes. Changing the baud rate causes all other
parameters to be re-calculated. The System Configurator checks that all configured devices
based on the information in the GSD file support the baud rate.
If the System Configurator finds at least one device in the configuration that does not support
the selected baud rate an error message appears, because this information is missing in the
device description file. The user can check the actual parameter, if he opens the Actual Bus
Parameter window with the Edit button. Some of the parameters can be changed individually.
Please note if you make any changes in the bus parameters the parameter for the Optimize
field must be changed from by SyCon to by User.
The Highest Station Address is the highest bus address up to which the master will search for
another active master station to transfer the send permission. This value should not be set
below the master address.
The field Watchdog control / TTR allows the user to enter a factor to control the watchdog
time of the slaves. If this factor is chosen to large, it is possible that the slaves could set their
outputs to Zero .
With the Auto Clear flag it is possible to select a global error flag. The Master controls the
process data transfer for the slaves with a timer. If the data transfer is not successful during
one data control time interval with activated option Auto clear modus on, then the Master
leaves the user data transfer and switches the outputs of all assigned slaves to the fail-safe
state.
Master Settings
To enter the master settings select the Settings - Master Settings menu or use the right
mouse button at a DP master device. There is also a Master Settings button in the Master
Configuration window available.
The Master settings contain parameters, which defines the behavior of the PMAC
GatewayDPRAM.
If Automatic release of the communication by the device is selected, the master starts with
the data transfer on the bus when initialization is finished. If Controlled release of the
communication by the application program is selected, the user has to start the data
transfer on the bus, by a defined release procedure.
The watchdog time appointed how long the device will wait for a user trigger of the watchdog,
upon a watchdog all outputs are set. This procedure must be activated by the user application
software and is not started automatically.
Addressing mode
The addressing mode of the process data is how to interpret the addresses of the process
image. There are the possibilities Byte addresses or Word addresses. For performance
reasons the PMAC Gatewayworks internally with word structures. Therefore if you have
configured the Byte address mode, the data for the slaves modules starts on even addresses.
The storage format fixes the format, how the data is placed and interpreted in the process
images. For data types, the Little Endian format and Big Endian format can be selected.
Different modes of handshaking the process data can be selected for the master. The selection
of this mode is important for the correct data exchange between the application and the device.
Hardware parameter
With this parameter you select the size of the dual-ported memory of the hardware. The
parameter will enlarge or reduce the possible value ranges for the I/O offsets.
Addressing mode
The addresses in the configuration data of the devices determine the starting points of the
corresponding data in the process image.
Byte address The process image has a byte structure and every byte has its own address.
Word address The process image has a word structure and every word has its own address.
This has nothing to do with the physical data size of the dual-ported memory, which is always
byte oriented! The following table shows how the different data types in the process image in
byte or word address mode:
IEC Address Offset address Data in the Output in Little Endian format
in byte mode in word mode in the dual-ported Process - byte module
memory Image - module with two single bytes
(first 8 bytes) (example) - word module
0 0000 0000
1 0000 0000
Output QB2 / QB1
QB 2 QB 2 2 1110 0010 D7 D6 D5 D4 D3 D2 D1 D0
3 0000 0000
Output QB4 / QB2
QB 4 QB 4 4 1111 1000 D7 D6 D5 D4 D3 D2 D1 D0
5 0000 0111 D7 D6 D5 D4 D3 D2 D1 D0
QW 6 QW 3 6 1111 1111
7 0100 0100
Insert Slave
To insert a new slave in the configuration select the Slave item in the menu Insert. Click on
that position, where you want to insert the new slave. A dialog box appears where you have to
select one or more slaves.
In the left list box there are listed all slave devices which are presented in the GSD directory. If
there are too many you can set a filter to select only a special slave family or vendor. When one
slave is selected, you can see additional information about the slave in the list box below. With
a double click or with the Add button the slave appears in the right list box. All devices in this
box will be connected to the active master who is displayed in the window. If you select the
slaves individually, you can give every device a name or a short description in the description
field.
With the addition of every slave the station address is incremented, but this valve can be
changed manually in the Station address field.
Slave configuration
The slave specific configuration is done in this window. Here you have to assign the modules
and their data to addresses for the process data image in the master device. Remember that
these addresses correspond to your application in the PC.
There are two types of slaves. A simple slave, which has a fixed data length, and a modular
slave, which has variable, date length and is configurable. This type of slave can be
understood as an assembly of one or more simple slaves with one bus address.
The upper table contains all available modules of the slave device. In the case of a simple slave
there is only one module, which is already copied, into the lower table automatically by SyCon.
If it is a modular slave, the user must do this with a double click on the module or selected
module or by clicking on the Append Module button. If a module has several inputs or
outputs, then it gets more lines in the configuration table. These additional lines will be
assigned with a higher index in the Idx column.
If not already present, select all modules from the upper table and insert them in the lower
table. The sequence of the modules in the lower list is important and must correspond to the
real physical slave configuration.
Assign the addresses of the module data in the process image for each module in the lower
table. This is done in the columns Type and Addr for input and output separately.
The I/O address can be entered by the user or set automatically by SyCon using
the Auto Addressing flag, which must be set in the Master Settings window.
If the flag is active SyCon will place all I/O data offsets in physical order. This is done during
the download procedure and the assigned addresses can be checked in the Address Table.
If the addresses are entered manually the default address 0 in the field I Addr. O Addr must be
overwritten by the user. Depending on the Addressing mode in the DP Master Settings the
addresses are byte addresses or word addresses. This is described in the chapter Addressing
mode. The DP-Slaves use the Watchdog Control flag to detect communication errors of their
assigned DP master. If a DP slave recognizes an interrupted communication to his master
during a defined watchdog timer interval, when he was operational once, he resets himself and
sets his outputs into a safe zero state.
DP Slave Settings
The DP Slave settings contain parameters, which define the behavior of the PMAC interface. To
enter the DP slave settings select at first the slave than open the window with the menu
Settings - DP Slave Settings.
The watchdog time appointed how long the device will wait for a user trigger of the watchdog,
until it resets all outputs to zero. This must be activated from the application.
Configuration mode
If the slave device should take the parameter out of the configuration which is downloaded
from SyCon then you must select for the Configuration mode the mode Configuration by
SyCon. If the configuration is written in the dual-ported memory from the application then you
must select Configuration by application.
With these different modes, the handshake of the process data is selected for the master. The
selection of this mode is important for the correct data exchange between the application and
the device.
If Automatic release of the communication by the device is selected, the slave is ready to
communicate with the master when started. If Controlled release of the communication by
the application program is selected, the user has to start the communication with the master.
Board Assignment
SyCon is able to configure all devices in a network. To run the online functions of such a
device you must define how SyCon can communicate with it. This is done in the menu item
Board Assignment. You have the choice between four boards, which are installed internally in
the PC and four devices, which are connected with the serial port to the PC.
SyCon looks in the registry of the device driver and displays all boards that are available
internally.
The externally connection can be checked with the buttons Check COM 1 to Com 4. SyCon
sends a request on that serial port and asked for the firmware. If there is a device connected
the firmware is displayed otherwise there will be a time-out error.
Now you can assign the configured devices to the boards and to the serial ports. If the
assignment for one device is done, it is no longer available in the select list for a further
assignment. Therefore if you want to change an assignment, you have to select No device
instead of a device, before you can get the device in the selection list for or other board or serial
port.
Address Table To display the list of salve addresses use the menu item View - Address
Table. Select the master as actual master to display its’ address table.
OD Table (Profibus) The Object Directory is displayed with the menu item View
- OD Table.
Print After you have selected the actual printer with the menu item Print
Setup you can print out the configuration with the menu item Print. If
you want to have a preview of the print before printing you can use the
function Print Preview.
Save You can save the configuration with the menu item Save if the file
name is known otherwise you must use the function Save as with a
new file name.
At first you have to select the desired device, so that it is signed with a blue frame around it.
This is done with the function Actual Master in the window Master Configuration or with the
function Select as actual master in the menu which appears if you click with the right mouse
button on a master device.
Before the download happens, SyCon will check the configuration. If there appears any error
message, the configuration should be checked. Most errors are overlapping addresses, which
can be located by looking into the Address Table.
The configuration will be transmitted to the selected device and stored in static FLASH
memory, so that it is available after the power is switched off and on in this device.
Debugging
Debug Mode and Device Diagnostic
After you have selected an actual master, you can start the debug mode. From this time,
SyCon requests the status of all slaves of the actual master. If there is an error on a slave the
bus line to this slave is drawn in red otherwise it is green. SyCon also display the Diag
message, if the slave signals diagnostic information. This information is displayed if you click
with the mouse at the corresponding device in debug mode.
To activate the debug mode select the menu Online - Start Debug Mode. The menu Online -
Device Diagnostic activates the DP slave diagnostic. To end the Debug Mode select the menu
Online - Stop Debug Mode.
Master_Lock The slave has been parameterized by another master. DP master (class
1) sets this bit, when the address is unequal to 255 and unequal to the
own address.
Param_Fault This bit is set by the slave, when the last parameter telegram has an
error, for example wrong length, wrong Ident_Number, invalid
parameter.
Invalid_Slave_Resp This bit is set by the master, when the master has received an invalid
answer from the slave.
Not_Supported This bit is set by the slave, when a function is asked to be performed
but does the slave does not support.
Ext_Diag This bit is set by the slave. If the bit is set, then there is diagnostic
information in the slave-specific diagnostic area (EXT_DIAG_DATA).
Cfg_Fault This bit is set by the slave, when the configuration data is not unequal.
Station_Not_Rdy This bit is set by the slave, when the slave is not ready for data
exchange.
Station_Non_Existent This bit is set by the master, if this slave is not reachable on the bus. If
this bit is set, the diagnostic bits holds the state of the last diagnostic
information or the initial values.
Diag.Deactivated This bit is set by the master, when the slave in the slave parameter set is
not marked as active and is take out of the cyclic processing.
Diag.Sync_Mode This bit is set by the slave, when he has received the sync-control
command.
Diag.Freeze_Mode This bit is set by the slave, when he has received the freeze-control
command.
Diag.WD_ON This bit is set by the slave, when its watchdog control is active.
Diag.Stat_Diag If the slave sets this bit, the master has to collect diagnostic information
as long as this bit is active. The slave sets this bit for example when
there are no valid user data. If the bit Diag.Prm_Req and the bit
Diag.Stat_Diag are set, the bit Diag.Prm_Req has the higher priority.
Diag_Prm_Req If the slave sets this bit, a new parameterization has to be performed.
This bit is set as long as no new parameterization has been performed.
This bit is set from the slave.
Diag.Master_Add In this octet the address of the master is entered, which has done the
parameterization of the this slave. If the salve is not parameterized from
any master, the slave put the address 255 (FF) into this octet.
Ident Code The identifier of the manufacturer is reserved for every participant. This
identifier can be used for checks or can be used for an exact
identification.
I/O Monitor
This is a simple tool, which allows displaying and entering at the first 32 bytes of the process
image.
This tool allows starting a ProfiBus-FMS service based on the configured objects and
communication references. You must select on of the service Read or Write and the parameter
in the select list. If it is a write, the output data are entered in the Value field. The service is
activated with the button Send. At the left side of the window appears the confirmation.
Task States
Task states are online counters, values, parameters and states that can be displayed. Several
task states are available. The Online - Task State menu activates a list of available
structures. The listed structures can be displayed to show the values.
Error numbers
The following table lists the error numbers of the converting functions.
Number Description
4000 No table existing
4001 Success in compromising
4002 Set not existing
4003 Last respectively first entry reached
4004 Not enough memory
4005 Directory table full
4006 Max number of entries reached
4007 No writing to this table possible, because the table is located in the FLASH
4008 Table name already exists
4009 File name does not exist
4010 Free RAM length from RCS_CNF.P86 is smaller than E_F_INDEX * 2
4011 Parameter next wrong
4012 Not enough free space to copy data set
4013 Set is deleted
4014 Value for Index is wrong
4015 Access not allowed
4016 Open_file used before init_file
4034 Length of converting stream is 0
4035 Non equal data set found
4036 Writing of set 0 is not allowed
4037 No entriy in this file
4038 Data set has length 0
4039 The function DbmInit has assigned a Zero pointer during RCS initialization
4040 Printer not ready
4041 The data base is used from another function
4042 New length of data base is smaller than used
4043 Unknown access mode
4044 Old data base has to be converted
4045 Error while converting. Function not known
4046 Unknown type in set 0 found
4047 No float function available
4048 Function not in RCS module
4049 Check failed
4050 Checksum ckeck failed
4051 More segments are existing in file, than in the structure FILE_INFO_T
4052 SegLen in structure FILE_INFO_T is smaller then the length in the file. Return of
function dbm_restore_data
4053 The header file holds an other information for a length than in the segment itself
4054 Not enough memory for allocation on the PC
4055 No index for file handle in structure FLASH_DIR of RCS found
4056
4057 File type 2 can not be printed because of too many definitions
4058 The definitions need too many lines to display them, than in the program available
4059 An unknown format for the parameter. Valid is U, H, or S
Number Description
4060 Unknown parameter type
4061 The data base was transmitted into the FLASH
4062 Set 0 contains no structure definition
4063 Set 0 can not be deleted
4064 Error during execution of a ODBC data base access
4065 Initializing of DBM through RCS had no success
4066 Passed data length incorrect
4067 Sorting function not linked
4068 Error in function parameter
4069 Error from ODBC table
4070 No free handle available. Too many data base links are already opened
4071 Unknown data type found in the table
4072 Structure of table GLOBAL not correct or no such table existing
4073 No name of an ACCESS data base
4074 Download window can't be created
4075 Download not fully performable
4076 Parameter SourceType of table SourceTab not existing
4077 Parameter Translate of table CreateTab does not exists
4078 Parameter Sourcefile of table CreateTab does not exists
4079 Parameter Sourcetable of table CreateTab does not exists
4080 Parameter Desttable of table CreateTab does not exists
4081 Parameter Special of table CreateTab does not exists
4082 More than 32 tables shoul be created
4083 No entry in element szSourceFile
4084 ODBC connection initialization not possible. This could happen when in file
ODBCINST.INI in section [Microsoft Access Driver (*.mdb)] is no valid path to
ODBCJT16/32.DLL.
4085 Error in structure in the ACCESS data base that is in DBM format
4086 Error in structure in the ACCESS data base that is in DBM format
4087 No data in a ODBC table
4088 No entry
4089 ODBC set length not valid
4090 Not enough data sets in ODBC table
4091 Table CreateTab not found
4092 Error in structure of table CreateTab
4093 No entry in element szSourceTable
4094 No entry in element szDestTable
4095 Entry in iSourceType of table CreateTab is wrong
4096 Entry in iTranslate of table CreateTab is wrong
4097 Function SQLAllocStmt reports an error
4098 OdDBC source table not found
5001 Function PackLongToByteShort: Not enough space in pvD (Number of elements
greater than reserved memory)
5002 Function PackLongToByteShort: Not enough space in pvD. Detected during
converting of pvS
5003 Function StringToByte: Not enough space in pvD
5004 Function IntToByte: Not enough space in pvD
5005 Function LongToShort: Not enough space in pvD
5006 Function PackStringDumpToByteArray: Not enough space in pvD
5007 Function PackStringBumpToByteArray: A character was found, which is not
convertable into a HEX value
5008 Function PackStringDumpToByteArray: Number of character odd
Hilscher Manuals (For In-Depth Protocol Explanations and Memory Map – except
CC-Link):
ftp://support.deltatau.com/DT-USA/Delta%20Tau%20Fieldbus/MANUALS/manuals.pdf