Acc 72P
Acc 72P
Acc 72P
^2 Accessory 72P
^4 3Ax-603784-xUxx
Table of Contents
INTRODUCTION ....................................................................................................................................................... 1
Applying the PMAC Gateway ..................................................................................................................................1
Fieldbus Connection Hints ...................................................................................................................................3
SyCon Configuration .................................................................................................................................................3
System Requirements ................................................................................................................................................3
Installation Procedure ................................................................................................................................................3
THEORY OF OPERATION ......................................................................................................................................4
JEXP Interface........................................................................................................................................................... 5
Memory Pointer Mailbox ..........................................................................................................................................5
Data Mailbox ............................................................................................................................................................. 6
Reading Incoming Data .............................................................................................................................................6
Reporting Input Status ...............................................................................................................................................6
HARDWARE ............................................................................................................................................................... 8
E-Points .....................................................................................................................................................................8
Setting the Base Address of the PMAC Gateway ..................................................................................................9
Setting the DPRAM Pointer Mailbox Address of the PMAC Gateway .................................................................9
Setting the DPRAM Data Mailbox Address of the PMAC Gateway .....................................................................9
DPRAM MEMORY MAP ........................................................................................................................................ 10
Process Data Handshake .................................................................................................................................... 10
Process Data Transfer Modes ............................................................................................................................ 11
PROFIBUS ................................................................................................................................................................. 13
Profibus Specifications ............................................................................................................................................ 13
Profibus Layout Diagram ........................................................................................................................................ 14
Profibus LEDs ......................................................................................................................................................... 15
Diagnostic LEDs ................................................................................................................................................. 15
Profibus Fieldbus Configuration ............................................................................................................................. 15
Profibus Master Settings ..................................................................................................................................... 15
Profibus Slave Settings ....................................................................................................................................... 16
Profibus Sycon Configuration ................................................................................................................................. 16
Profibus Master Settings ......................................................................................................................................... 17
Configuring the Slave for Profibus .......................................................................................................................... 18
Downloading the Slave Configuration for Profibus ................................................................................................ 19
Testing and Monitoring the PMAC Gateway for Profibus ...................................................................................... 19
DEVICENET ............................................................................................................................................................. 21
DeviceNet Specifications ........................................................................................................................................ 21
DeviceNet Layout Diagram..................................................................................................................................... 22
DeviceNet LEDs ..................................................................................................................................................... 23
Diagnostic LEDs ................................................................................................................................................. 23
DeviceNet Typical Interconnection ......................................................................................................................... 23
DeviceNet Fieldbus Configuration .......................................................................................................................... 24
DeviceNet Master Settings .................................................................................................................................. 24
DeviceNet Slave Settings .................................................................................................................................... 24
DeviceNet Sycon Configuration.............................................................................................................................. 24
DeviceNet Master Settings .................................................................................................................................. 25
DeviceNet Insert Slave ........................................................................................................................................ 25
DeviceNet Slave Configuration ............................................................................................................................... 25
Downloading the Configuration to PMAC Gateway............................................................................................... 26
DeviceNet Debugging ............................................................................................................................................. 26
DeviceNet Auto Network Scan ............................................................................................................................... 26
CANOPEN ................................................................................................................................................................. 28
Table of Contents i
Accessory 72P
ii Table of Contents
Accessory 72P
INTRODUCTION
This manual provides the information needed to apply the PMAC Gateway (PCI Version). A UMAC
compatible version is available and is covered in a separate manual. The PMAC Gateway provides a
high-speed interface to PMAC via PMAC’s JEXP (Expansion Port) interface. A cable is provided with
the PMAC Gateway.
There are two connectors located on the front of the Fieldbus Gateway card. The male DB9 connector is
the Diagnostic Connector and provides a RS232 link for the SyCon software. The second connector is
the Fieldbus Connector and it provides a means to connect to the fieldbus link. The form factor of this
connection is dependent on which fieldbus protocol is being used. For 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 connected to fieldbus link.
The protocol is dependent upon which hardware and therefore option is selected. The hardware cannot be
programmed for an alternate protocol including master/slave.
PMAC Gateway gets its power from the PCI bus. The DeviceNet version requires an external 24Vdc
power supply for the fieldbus.
Applying the PMAC Gateway
There are ten steps in applying the PMAC Gateway:
1. Install the SyCon and PEWIN software on the PC.
2. With the power off, install PMAC Gateway in the PC slot next to PMAC and connect the 50-pin
ribbon cable to JEXP.
3. Connect the PC to the PMAC Gateway card via a straight DB9 serial cable.
4. Launch the SyCon setup utility from the PC.
5. Establish communications to the PMAC Gateway card.
6. Configure the fieldbus and download it to the card. (The default PMAC Gateway configuration can
be used for testing.)
7. Assign PMAC M-Variables to represent fieldbus data and to communicate with the PMAC Gateway
8. Write a PMAC PLC using PMAC M-Variables to report data to the device and transfer data from the
device to the network.
9. 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.
10. Implement the assigned M-Variables in PLCs or motion programs as required. (Appendix A provides
a reprinted version of the SyCon Manual. Appendix B and C provide examples for M-Variable
assignment and PLC implementation.)
Introduction 1
Accessory 72P
SyCon is provided with the PMAC Gateway under license. PEWin32 is a Delta Tau product and
normally is purchased with the first PMAC.
2 Introduction
Accessory 72P
Introduction 3
Accessory 72P
THEORY OF OPERATION
The PMAC Gateway PCI board is organized as a motherboard/daughter board system. The motherboard
contains the PCI interface, JEXP (Expansion) interface, diagnostics, and the fieldbus connections. The
daughter boards contain 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-ported RAM (memory) on the daughter board.
The structure of this DPRAM is given later in this manual and is common for all the fieldbuses 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 JEXP (Expansion) interface. PMAC programs access
the fieldbus data by reading or writing data to memory addresses corresponding to the location of the
PMAC Gateway PCI 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
The understanding of the PMAC Gateway is best approached by considering the PMAC side and the
Fieldbus side separately. A detailed discussion of each follows. Figure 1 shows a simplified view of the
dual-ported RAM interface between the PMAC Gateway and the PMAC interface.
4 Theory of Operation
Accessory 72P
2. Read input data or write output data to the fieldbus through PMAC Gateway’s data mailbox memory
location. (Example: m1001=m950 to affect outputs or m900=m1001 to read inputs.)
JEXP Interface
On the PMAC side, the key to understanding how to use the PMAC Gateway is to understand the JEXP
interface. PMAC’s JEXP (Expansion) interface provides address, data and control signals from PMAC to
peripheral devices. This is a fast 24-bit data path to and from PMAC. One of the limitations of the
interface however is the amount of address space provided.
There are not enough address lines available on this interface to directly map all of the fieldbus data into
PMAC memory. In order to solve the address limitation, a mailbox approach was implemented. All
fieldbus data is communicated to PMAC via a simple 8-bit mailbox. At first glance, it may appear that
moving the fieldbus data through one simple 8-bit memory location creates an unacceptable bottleneck.
This is not the case. This interface is very fast. Fast interface hardware, coupled with PMAC’s fast DSP
and proper software techniques makes for fast operation. Moving 100 bytes of input data and 100 bytes
of output data between PMAC and the PMAC Gateway occurs in less than ½ millisecond with the
slowest PMAC.
From PMAC’s point of view, the PMAC Gateway occupies two memory (I/O) locations. These locations
consist of a Memory Pointer Mailbox and a Data Mailbox. The Memory Pointer Mailbox is where
PMAC sets the starting address in PMAC Gateway’s DPRAM. The Data Mailbox is where PMAC gets
the data stored at the memory location pointed to by the data in the Memory Pointer Mailbox.
Note:
These locations must be mapped as 24 bit M-Variables.
The PMAC Gateway contains circuitry that increments the memory pointer set in the Memory Pointer
Mailbox after a read or write of the Data Mailbox. PMAC only has to set the memory pointer at the
beginning of a data transfer sequence if the DPRAM bytes of interest are in contiguous memory locations.
Memory Pointer Mailbox
A Memory Pointer Mailbox is used to set the starting address at which to read or write fieldbus data.
Hardware on the PMAC Gateway increments these addresses after each read or write of data.
Figure 2 depicts the Memory Pointer Mailbox as M1000. If m1000=0 then the starting address of data
acquired through the Data Mailbox will be 0 offset in PMAC Gateway’s dual-ported RAM.
Theory of Operation 5
Accessory 72P
Data Mailbox
Figures 3 and 4 depict the transfer of data from PMAC to the PMAC Gateway. Note the following things
about these figures:
1. The Data Mailbox (M1001) is defined as a 24-bit unsigned integer.
2. The data transferred between PMAC and the fieldbus are always eight bit integers. This is true
regardless of the eventual meaning of the data. PMAC Gateway supports many functions including
analog I/O, which is signed word oriented. In the case of word oriented I/O, the data is transferred in
two read or write cycles as LSB, MSB.
3. PMAC Gateway incorporates an auto-increment feature to speed up the process of transferring data to
or from PMAC and the fieldbus. The auto increment circuitry in PMAC Gateway bumps the memory
pointer by one location following a data transfer through the Data Mailbox. This is why at first
glance the PMAC programs (refer to figure 3 and 4) appear to be reading or writing to the same
memory location.
Reading Incoming Data
Receive process data is moved from the fieldbus to PMAC in the following manner. Typical meanings of
this data are: digital outputs controlled by PMAC, speed or position reference data from the host, mode
commands, etc.
6 Theory of Operation
Accessory 72P
Hardware 7
Accessory 72P
HARDWARE
E-Points
E-Point Default Alternate Description
E1 ON Connects PE to daughter board
E2-A ON Note 1 Selects CS04 – sets base address of PMAC Gateway
E2-B OFF Note 1 Selects CS06 – sets base address of PMAC Gateway
E2-C OFF Note 1 Selects CS10 – sets base address of PMAC Gateway
E2-D OFF Note 1 Selects CS12 – sets base address of PMAC Gateway
E2-E OFF Note 1 Selects CS14 – sets base address of PMAC Gateway
E2-F OFF Note 1 Selects CS16 – sets base address of PMAC Gateway
E3 1-2 Note 2 Enable Low Pass Filter on chip select line
E4 2-3 Note 3 Enable Low Pass Filter on chip select line
E5 1-2 2-3 Connects filter to daughter board
E6-A OFF N/A Counter enable line ON Only for testing
E6-B OFF N/A Counter enable line ON Only for testing
E7 OFF N/A Used only as tie point
E8 OFF N/A Wait line to PMAC
E9 2-3 1-2 1-2 Enables Reset by switch or PMAC, 2-3 Disabled
E10 2-3 1-2 1-2 Enables Reset by switch or PMAC, 2-3 Disabled
E11-A ON Note 1 Sets DPRAM Pointer address to Base+0
E11-B OFF Note 1 Sets DPRAM Pointer address to Base+1
E11-C OFF Note 1 Sets DPRAM Pointer address to Base+2
E11-D OFF Note 1 Sets DPRAM Pointer address to Base+3
E11-E OFF Note 1 Sets DPRAM Pointer address to Base+4
E11-F OFF Note 1 Sets DPRAM Pointer address to Base+5
E11-G OFF Note 1 Sets DPRAM Pointer address to Base+6
E11-H OFF Note 1 Sets DPRAM Pointer address to Base+7
E12 1-2 2-3 Sets DPRAM Pointer address to Y Memory
Sets DPRAM Pointer address to X or Y Memory
E13-A OFF N1 Sets DPRAM Data address to Base+0
E13-B ON Note 1 Sets DPRAM Data address to Base+1
E13-C OFF Note 1 Sets DPRAM Data address to Base+2
E13-D OFF Note 1 Sets DPRAM Data address to Base+3
E13-E OFF Note 1 Sets DPRAM Data address to Base+4
E13-F OFF Note 1 Sets DPRAM Data address to Base+5
E13-G OFF Note 1 Sets DPRAM Data address to Base+6
E13-H OFF Note 1 Sets DPRAM Data address to Base+7
E14 1-2 2-3 Sets DPRAM Data address to Y Memory
Sets DPRAM Data address to X or Y Memory
Note 1: Only one on at a time. See table for address.
Note 2: For modules purchased prior to 2002, should be changed to 2-3 for a Turbo PMAC (Remove
the filter circuit.)
Note 3: For modules purchased prior to 2002, should be changed to 1-2 for a Turbo PMAC (Remove
the filter circuit.)
8 Hardware
Accessory 72P
Hardware 9
Accessory 72P
PMAC changes the send process data or read receive process data anytime, without using the PdAck and
PdCom bits synchronization mechanism. Therefore, this operating mode realizes the simplest method to
transfer the process data, but only byte consistency for interrelated data is guaranteed.
Buffered, Controlled by PMAC
The Com bit in the Host Flags location is set as soon as the data exchange over the fieldbus occurs. For
each valid fieldbus cycle, the PMAC Gateway does an updating data exchange with two internal buffers.
By inverting the PdCom bit in DevFlags, the transfer from the dual-port memory data to the internal
buffers is activated by the program.
The PMAC Gateway communicates its access by adjusting the state of the bit PdAck to the state of the
PdCom bit. Therefore, the PdCom and PdAck bits become equal and the PMAC Gateway gets back its
access rights to the dual-port memory buffers.
In this operating mode, bus cycles and dual-ported memory data exchange are not coupled, so delay time
arises in the worst case up to two bus cycles because a running bus cycle must have finished before an
access to internal buffers can be started.
Buffered, Controlled by PMAC Gateway
The Com bit in the Host Flags location is set as soon as the data exchange over the fieldbus occurs. For
each valid fieldbus bus cycle, the PMAC Gateway does an updating data exchange with two internal
buffers. If the PMAC Gateway has the access directly to the process data areas of the dual-ported
memory (i.e. the PdAck and PdCom bits are equal), an exchange between the internal buffers and the
dual-ported memory is executed. The end of the exchange is indicated to PMAC by inverting the PdAck
bit of the Host Flags. Therefore, the PdAck and PdCom bits become unequal and the program gets the
access on both data buffers.
If the program has finished its work on the process-data area, it has received access by inverting the
PdCom bit of the DevFlags. The states of the PdAck and PdCom bits are equal and the PMAC Gateway
gets back the access to the process data of the dual-ported memory.
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 3.875 X 8.265
Power Requirements +5vdc, 700ma (from PCI-bus)
Connector Types 50 Pin JEXP (Expansion Port) interface
9 Pin D-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 13
Accessory 72P
14 Profibus
Accessory 72P
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-D
Not used on Profibus version
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-B
ON = Communication Active
OFF = Communication Stopped
Flashing = Parameter Error (i.e. Mismatch)
Diagnostic Yellow LED D2-A
LEDs ON = Fieldbus Data Exchange Occurring
OFF = No Fieldbus Data Exchange Occurring
Yellow LED D2-B
ON = Communication Error
OFF = No Communication Error
Yellow LED D2-C
Not used on the Profibus Version
Yellow LED D2-D
Not used on the Profibus Version
Profibus Fieldbus Configuration
The fieldbus side of the PMAC Gateway conforms to the Profibus 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 PMAC
Gateway slave may be configured from the fieldbus master. The following table summarizes the
characteristics that can be configured.
Profibus Master Settings
Item Parameter Setting As Shipped
1 Bus speed 1200 K bit/S
2 Handshake mode No consistence, uncontrolled
3 Behavior after power up Automatic release of communication by the device
4 Watchdog time 1000 msec
5 Addressing mode Byte addresses
6 Storage format Big Endian
Profibus 15
Accessory 72P
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 Sycon Configuration
To insert a new master into the configuration, select the Master icon in the menu toolbar and insert a new
master on the bus. Once loaded, the screen should be displayed on the PC.
16 Profibus
Accessory 72P
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:
Profibus 17
Accessory 72P
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. 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.
18 Profibus
Accessory 72P
Profibus 19
Accessory 72P
20 Profibus
Accessory 72P
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, a DeviceNet network usually consists of one master and
many slaves.
DeviceNet Specifications
Size 3.875 X 8.265
Power Requirements +5Vdc, 500ma (from PCI-bus)
+24Vdc, 50ma (from external)
Connector Types 50 Pin JEXP (Expansion Port) interface
9-Pin D-Male Diagnostic interface
5 Position terminal
Dual Port Memory Size 2048 Bytes (2K)
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 21
Accessory 72P
22 DeviceNet
Accessory 72P
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
DeviceNet Typical Interconnection
DeviceNet 23
Accessory 72P
24 DeviceNet
Accessory 72P
DeviceNet 25
Accessory 72P
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.
26 DeviceNet
Accessory 72P
Download the new configuration to the master to establish communication. Usually, this is the easiest
way to get a network up and running.
DeviceNet 27
Accessory 72P
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 3.875 X 8.265
Power Requirements +5Vdc, 700ma (from PCI-bus)
Connector Types 50 Pin JEXP (Expansion Port) 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
Profibus Chip Technology SJA1000
Lab Certified Yes
28 CANopen
Accessory 72P
CANopen 29
Accessory 72P
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
30 CANopen
Accessory 72P
CANopen 31
Accessory 72P
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.
32 CANopen
Accessory 72P
CANopen 33
Accessory 72P
34 CANopen
Accessory 72P
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 3.875 X 8.265
Power Requirements +5VDC, 500 mA (from PCI-bus)
Connector Types 50 Pin JEXP (Expansion Port) interface
9-pin DB 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
CC-link 35
Accessory 72P
36 CC-link
Accessory 72P
CC-Link LEDs
Diagnostic LEDs
Diagnostic LEDs are provided to give a visual indication of board status. The green LEDs are easy to
understand. All the states are discussed below.
Green LED D1-A ON = Ready
OFF = Hardware Error or no power
Flashing Cyclic = Bootstrap loader active
Flashing Non-Cyclic = System or hardware error
Green LED D1-B ON = CC-Link Communication Active
OFF = CC-Link Communication Stopped
Flashing = CC-Link Parameter Error (i.e. Mismatch)
Green LED D1-C Not used
Green LED D1-D ON = Ready
OFF = Hardware Error or no power
Flashing Cyclic = Bootstrap loader active
Flashing Non-Cyclic = System or hardware error
Yellow LED D2-A ON = Fieldbus Data Exchange Occurring
OFF = No Fieldbus Data Exchange Occurring
CC-link 37
Accessory 72P
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.
38 CC-link
Accessory 72P
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 39
Accessory 72P
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:
40 CC-link
Accessory 72P
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
Define Memory Locations for the Input Bytes (Receive Process Data)
m933->Y:$09C39,0,8,u ; InputByte1 (Receive Process Data)
m934->Y:$09C3A,0,8,u ; InputByte2
m935->Y:$09C3B,0,8,u ; InputByte3
m936->Y:$09C3C,0,8,u ; InputByte4
m937->Y:$09C3D,0,8,u
m938->Y:$09C3E,0,8,u
m939->Y:$09C3F,0,8,u
m940->Y:$09C40,0,8,u
m941->Y:$09C41,0,8,u
m942->Y:$09C42,0,8,u
m943->Y:$09C43,0,8,u
m944->Y:$09C44,0,8,u
m945->Y:$09C45,0,8,u
m946->Y:$09C46,0,8,u
m947->Y:$09C47,0,8,u
m948->Y:$09C48,0,8,u ; InputByte16 (Receive Process Data)
General Purpose Timers
m1020->X:$0700,0,24,S ; Timer #1
m1021->Y:$0700,0,24,S ; Timer #2
m1022->X:$0701,0,24,S ; Timer #3
m1023->Y:$0701,0,24,S ; Timer #4
Example of timer function:
m1=1 turn on output #1
; m1020=125*8388608/I10 Set timer to 125 msec.
; While (m1020>0) Wait for timer to counts
; endwhile down to 0
; m=0 turn off output #1
;
;
;
CLOSE
;
OPEN PLC2 CLEAR
Report All Output Data to the Fieldbus Slave (Send Process Data)
This PLC updates the output data sent from a Master to a Slave and updates the input data received by a
Master from a Slave.
m1000=0 ; Set pointer to the start of the output area
m1001=m901 ; Report OutputByte1 to the slave (Send Process Data Byte1)
m1001=m902 ; Report OutputByte2 to the slave (Send Process Data Byte2)
m1001=m903 ; Report OutputByte3 to the slave (Send Process Data Byte3)
m1001=m904 ; Report OutputByte4 to the slave (Send Process Data Byte4)
m1001=m905 ; Report OutputByte5 to the slave (Send Process Data Byte5)
m1001=m906 ; Report OutputByte6 to the slave (Send Process Data Byte6)
m1001=m907 ; Report OutputByte7 to the slave (Send Process Data Byte7)
m1001=m908 ; Report OutputByte8 to the slave (Send Process Data Byte8)
m1001=m909 ; Report OutputByte9 to the slave (Send Process Data Byte9)
m1001=m910 ; Report OutputByte10 to the slave (Send Process Data Byte10)
m1001=m911 ; Report OutputByte11 to the slave (Send Process Data Byte11)
m1001=m912 ; Report OutputByte12 to the slave (Send Process Data Byte12)
m1001=m913 ; Report OutputByte13 to the slave (Send Process Data Byte13)
m1001=m914 ; Report OutputByte14 to the slave (Send Process Data Byte14)
m1001=m915 ; Report OutputByte15 to the slave (Send Process Data Byte15)
m1001=m916 ; Report OutputByte16 to the slave (Send Process Data Byte16)
Time Delay
m1020=10*8388608/I10
While(m1020>0)
Endwhile
Read all Commanded Outputs from the Fieldbus Slave (Receive
Process Data)
m1000=512 ; Set pointer to the start of the Input area
For Gateway devices that have 8KDPRAM m1000=3584 to point to the start of the Output area:
m933=m1001 ; Read InputByte1 from the slave (Receive Process Data Byte1)
m934=m1001 ; Read InputByte2 from the slave (Receive Process Data Byte2)
m935=m1001 ; Read InputByte3 from the slave (Receive Process Data Byte3)
m936=m1001 ; Read InputByte4 from the slave (Receive Process Data Byte4)
m937=m1001 ; Read InputByte5 from the slave (Receive Process Data Byte5)
m938=m1001 ; Read InputByte6 from the slave (Receive Process Data Byte6)
m940=m1001 ; Read InputByte7 from the slave (Receive Process Data Byte7)
m941=m1001 ; Read InputByte8 from the slave (Receive Process Data Byte8)
m942=m1001 ; Read InputByte9 from the slave (Receive Process Data Byte9)
m943=m1001 ; Read InputByte10 from the slave (Receive Process Data Byte10)
m944=m1001 ; Read InputByte11 from the slave (Receive Process Data Byte11)
m945=m1001 ; Read InputByte12 from the slave (Receive Process Data Byte12)
m946=m1001 ; Read InputByte13 from the slave (Receive Process Data Byte13)
m947=m1001 ; Read InputByte14 from the slave (Receive Process Data Byte14)
m948=m1001 ; Read InputByte15 from the slave (Receive Process Data Byte15)
m949=m1001 ; Read InputByte16 from the slave (Receive Process Data Byte16)
Time Delay
m1020=10*8388608/I10
While(m1020>0)
Endwhile
Outputs
Inputs
Open PLC2
Clear
I5111=100*8388607/I10
while(i5111>0)
endwhile
m1000=0 ; Set pointer to the start of the output area
M1001=M901 ; Send OutputByte1 to the slave (Send Process Data Byte1)
M1001=M902 ; Send OutputByte2 to the slave (Send Process Data Byte2)
M1001=M903 ; Send OutputByte3 to the slave (Send Process Data Byte3)
M1001=M904 ; Send OutputByte4 to the slave (Send Process Data Byte4)
M1001=M905 ; Send OutputByte5 to the slave (Send Process Data Byte5)
M1001=M906 ; Send OutputByte6 to the slave (Send Process Data Byte6)
M1001=M907 ; Send OutputByte7 to the slave (Send Process Data Byte7)
I5111=20*8388607/I10
while(i5111>0)
endwhile
m908=m1001 ; Read InputByte1 from the slave (Receive Process Data Byte1)
m909=m1001 ; Read InputByte2 from the slave (Receive Process Data Byte2)
m910=m1001 ; Read InputByte3 from the slave (Receive Process Data Byte3)
m911=m1001 ; Read InputByte4 from the slave (Receive Process Data Byte4)
m912=m1001 ; Read InputByte5 from the slave (Receive Process Data Byte5)
m913=m1001 ; Read InputByte6 from the slave (Receive Process Data Byte6)
m914=m1001 ; Read InputByte7 from the slave (Receive Process Data Byte7)
CLOSE
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