Hardware Reference Manual: Turbo PMAC2 Realtime Express Controller
Hardware Reference Manual: Turbo PMAC2 Realtime Express Controller
^4 9xx-603862-1xx
Operating Conditions
All Delta Tau Data Systems, Inc. motion controller products, accessories, and amplifiers contain
static sensitive components that can be damaged by incorrect handling. When installing or
handling Delta Tau Data Systems, Inc. products, avoid contact with highly insulated materials.
Only qualified personnel should be allowed to handle this equipment. In the case of industrial
applications, we expect our products to be protected from hazardous or conductive materials
and/or environments that could cause harm to the controller by damaging components or causing
electrical shorts. When our products are used in an industrial environment, install them into an
industrial electrical cabinet or industrial PC to protect them from excessive or corrosive moisture,
abnormal ambient temperatures, and conductive materials.
If Delta Tau Data Systems, Inc. products are exposed to hazardous or conductive materials and/or
environments, we cannot guarantee their operation.
REVISION HISTORY
Table of Contents
INTRODUCTION .................................................................................................................................. 1
Overview .............................................................................................................................................. 1
Compatibility ........................................................................................................................................ 1
Configuration........................................................................................................................................ 2
Base Version ........................................................................................................................................ 2
Macro Ring Connector Options ............................................................................................................ 2
Option 1: Additional MACRO Interface ICs ......................................................................................... 2
Option 5: CPU and Memory Configurations ......................................................................................... 3
Option 10: Firmware Version Specification .......................................................................................... 3
Option 12: Analog-to-Digital and Digital-to-Analog Converters ............................................................ 3
Part Number Definition ......................................................................................................................... 4
SOFTWARE SETUP............................................................................................................................ 24
Host Communications ......................................................................................................................... 24
Pewin32PRO2 Communication Setup ................................................................................................. 24
Realtime Express Network Specific Configuration Setup .................................................................... 27
Realtime Express Network Setup – Step by Step ................................................................................. 28
I-Variable Definitions......................................................................................................................... 33
Using PMAC Motor Backlash Feature ................................................................................................ 42
Reading/Writing A4N/A5N Drive Parameters over the network .......................................................... 43
Accessing Returning Data from A4N/A5N Drives .............................................................................. 45
Using Absolute Feedback With A4N/A5N Drives ............................................................................... 47
Detecting Errors on A4N/A5N Network ............................................................................................. 47
Table of Contents i
Turbo PMAC2 Realtime Express Controller
INTRODUCTION
Overview
The Turbo PMAC2 Realtime Express Controller is a member of the Turbo PMAC family of
boards optimized for interface to the system through Panasonic’s Realtime Express Network. It
can command up to 32 axes through Realtime Express Network. This controller is also capable of
communicating and control of MACRO drives and IO modules if ordered with the MACRO
option.
The Turbo PMAC2 Realtime Express Controller is a stand-alone unit which can be
communicated with via RS-232, USB or Ethernet connections, with or without the optional dual-
ported RAM.
This controller is also capable of Fieldbus communications when the appropriate option is
ordered. The form factor of this connection is dependent on which Fieldbus protocol is being
utilized and it supports the following protocols:
The protocol is dependent upon which hardware and option are selected. The hardware cannot be
programmed for an alternate protocol including master/slave.
Compatibility
This controller can be used to control Panasonic A4N/A5N Drives over the Realtime Express
network. This network utilizes the Ethernet type CAT-5 cable as the communication medium, but
should not be connected to any other Ethernet network.
Note
Currently, the controller only supports single block slave nodes.
If ordered with the MACRO option, this controller can control MACRO drives and I/O devices
over either the fiber optic MACRO ring or copper MACRO ring.
Introduction 1
Turbo PMAC2 Realtime Express Controller
Configuration
Base Version
The base version of the Turbo PMAC2 Realtime Express Controller provides:
If a MACRO interface is desired (which is the usual reason for use of the board), at least one of
the MACRO connector options must be selected.
• Option A provides the MACRO-ring fiber optic SC-style interface connector. The key
component on the board is U49.
• Option C provides the MACRO-ring RJ-45 electrical interface connectors. The key
components on the board are CN3 and CN4.
• Option 1A provides the first additional MACRO interface IC (2 total) for 16 additional
MACRO nodes, eight additional servo nodes and eight additional I/O nodes (32 nodes total, 16
servo and 16 I/O). The key component on the board is U41.
• Option 1B provides the second additional MACRO interface IC (3 total) for 16 additional
MACRO nodes, eight additional servo nodes and eight additional I/O nodes (48 nodes total, 24
servo and 24 I/O). The key component on the board is U42. Option 1A is a pre-requisite.
• Option 1C provides the third additional MACRO interface IC (4 total) for 16 additional
MACRO nodes, eight additional servo nodes and 8 additional I/O nodes (64 nodes total, 32 servo
and 32 I/O). The key component on the board is U43. Options 1A and 1B are pre-requisites.
Introduction 2
Turbo PMAC2 Realtime Express Controller
Different versions of Option 5 provide different CPU speeds and main memory sizes. Only one
Option 5xx may be selected for the board. The CPU is a DSP563xx IC as component U1. The
CPU is available in two speed options: 80MHz CPU is a DSP56303 (Option 5C0), 240 MHz
CPU is a DSP56321 (Option 5F3). The Maximum frequency of operation is indicated with a
sticker on the CPU in U1.
The compiled/assembled-program memory SRAM ICs are located in U30, U31, and U32. These
ICs form the active memory for the firmware, compiled PLCs, and user-written phase/servo
algorithms. These can be 128k x 8 ICs (for a 128k x 24 bank), fitting in the smaller footprint, or
they can be the larger 512k x 8 ICs (for a 512k x 24 bank), fitting in the full footprint. The user-
data memory SRAM ICs are located in U27, U28, and U29. These ICs form the active memory
for user motion programs, uncompiled PLC programs, and user tables and buffers. These can be
128k x 8 ICs (for a 128k x 24 bank), fitting in the smaller footprint, or they can be the larger 512k
x 8 ICs (for a 512k x 24 bank), fitting in the full footprint.
The flash memory IC is located in U26. This IC forms the non-volatile memory for the board’s
firmware, the user setup variables, and for user programs, tables, and buffers. It can be 1M x 8,
2M x 8, or 4M x 8 in capacity.
Option 5C0: Default CPU speed and memory configuration: 80MHz DSP56303 CPU
(8Kx24 internal memory), 128Kx24 SRAM compiled/assembled program memory,
128Kx24 SRAM user data memory, 1Mx8 flash memory.
Option 5C3: Default CPU speed and memory configuration: 80MHz DSP56303 CPU
(8Kx24 internal memory), expanded 512Kx24 SRAM compiled/assembled program
memory, expanded 512Kx24 SRAM user data memory, 4Mx8 flash memory.
Option 5F3: 240MHz DSP56321 CPU (192Kx24 internal memory), expanded 512Kx24
SRAM compiled/assembled program memory, expanded 512Kx24 SRAM user data
memory, 4Mx8 flash memory.
Normally the Turbo PMAC2 Eth Ultralite is provided with the newest released firmware version.
The response to the VERSION query command shows which firmware revision is presently
installed. Option 10 provides for a user-specified firmware version.
Option 12 permits the installation of two channels of on-board analog-to-digital converters and
one channel of on-board digital-to-analog converter.
The analog inputs are not optically isolated, and each can have a +/- 10V input range, or a +/-5V
input range if differential signal is used, individually selectable with a 12-bit resolution.
Introduction 3
Turbo PMAC2 Realtime Express Controller
A B C D E F G H J K L
Turbo PMAC2 Realtime Express
9 - 3 8 6 2 - 2 - 0
A B C E G H J
C0 - Opt. 5C0 80MHz 2 - PMAC2 (Standard)* 4 - Realtime Express 0 - Realtime Express Only 0 - No Options 0 - No Options
DSP563xx CPU Only (Standard) No MACRO (Standard) 1 - Opt. G1
256Kx24 SRAM 1 - Opt. 12 Profibus Master
1Mx8 flash* D 2 - Opt. 1A 8 servo, 6 I/O 2-channels 12-bit 2 - Opt. G2
5 - Realtime Express
(Standard) and 2 communic. Nodes A/D converter & Profibus Slave
With Opt. A 3 - Opt. G3
C3 - Opt. 5C3 80MHz 0 - No Option MACRO-ring 1 12-bit D/A converter
DeviceNet Master
DSP563xx CPU fiber optic interface 3 - Opt. 1B 16 servo, 12 I/O 4 - Opt. G4
1024Kx24 SRAM 3 - Opt. 18A and 4 communic. Nodes DeviceNet Slave
4Mx8 flash* Electronic board 6 - Realtime Express 5 - Opt. G5
F3 - Opt. 5F3 240MHz Identification With Opt. C 4 - Opt. 1C 24 servo, 18 I/O CanOpen Master
DSP563xx CPU MACRO-ring and 6 communic. Nodes 6 - Opt. G6
1024Kx24 SRAM CanOpen Slave
CPU / Memory / Firmware RJ-45 electrical interf.
4Mx8 flash* 5 - Opt. 1D 32 servo, 24 I/O 7 - Opt. GB
Options CC-Link Slave
If 5 & 6 then Must Select and 8 communic. nodes
Other Options
Opt-1A, 1B, 1C or 1D For G
If 2 - 5 then Must Select
Opt-A or Opt-C For E
F K L
Axis / MACRO Node Options
4 - No Option 00 - No Additional* Options
(Standard)
xx - FactoryHassigned digits
5 - Opt. 2B for Additional* Options
Dual Port. RAM Factory Assigned Options
6 - Opt. 15F
ModBus Comm.
For detailed information on any of these options, please refer to the previous section of this
manual.
Introduction 4
Turbo PMAC2 Realtime Express Controller
HARDWARE SETUP
1. Inspect the condition of the shipping container and report any damage immediately to the
commercial carrier that delivered the controller.
2. Remove the controller from the shipping container and remove all packing materials.
Check all shipping material for connector kits, documentation, diskettes, CD ROM, or
other small pieces of equipment. Be aware that some connector kits and other equipment
pieces may be quite small and can be accidentally discarded if care is not used when
unpacking the equipment. The container and packing materials may be retained for future
shipment.
3. Verify that the part number of the controller received is the same as the part number
listed on the purchase order.
4. Inspect the controller for external physical damage that may have been sustained during
shipment and report any damage immediately to the commercial carrier that delivered the
controller.
5. Electronic components in this controller are design-hardened to reduce static sensitivity.
However, use proper procedures when handling the equipment.
6. If the controller is to be stored for several weeks before use, be sure it is stored in a
location conforming to published storage humidity and temperature specifications stated
in this manual.
Mounting
The location of the control is important. Installation should be in an area that is protected from
direct sunlight, corrosives, harmful gases or liquids, dust, metallic particles, and other
contaminants. Exposure to these can reduce the operating life and degrade performance of the
control.
Several other factors should be evaluated carefully when selecting a location for installation:
For effective cooling and maintenance, the control should be mounted on a smooth, non-
flammable vertical surface.
At least 3 inches (76mm) top and bottom clearance must be provided for airflow. At least
0.4 inches (10mm) clearance is required between controls (each side).
Temperature, humidity and Vibration specifications should also be taken in account.
The Turbo PMAC2 Realtime Express Controller can be mounted with a traditional 2-hole panel
mount, one U-shape/notch on the bottom and one pear-shaped hole on top.
The controller is mounted to a back panel. The back panel should be unpainted and electrically
conductive to allow for reduced electrical noise interference. The back panel should be machined
to accept the mounting bolt pattern of the controller. Make sure that all metal chips are cleaned up
before the controller is mounted so there is no risk of getting metal chips inside the controller.
Hardware Setup 5
Turbo PMAC2 Realtime Express Controller
The controller is mounted to the back panel with four M4 screws and internal-tooth lock washers.
It is important that the teeth break through any anodization on the controller’s mounting gears to
provide a good electrically conductive path in as many places as possible. Mount the controller on
the back panel so there is airflow at both the top and bottom areas of the controller (at least three
inches).
Caution:
Units must be installed in an enclosure that meets the environmental IP
rating of the end product (ventilation or cooling may be necessary to
prevent enclosure ambient from exceeding 45° C [113° F]).
Mechanical Drawing
Note:
For more detailed drawings (SolidWorks, eDrawings, DXF), visit our
website at http://www.deltatau.com.
Hardware Setup 6
Turbo PMAC2 Realtime Express Controller
System Wiring
8 Inputs / 8 Outputs
TTL Level 8 Sinking/Sourcing Digital Inputs Handwheel
(typically used to 4 Sourcing/Sinking Digital Outputs DAC output
create multiplexed I/O Watchdog relay contacts ADC Input
with accessory boards) 1 Sinking/Sourcing Input Pulse and Direction
25 23 21 19 17 15 13 11 9 7 5 3 1 13 12 11 10 9 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1
26 24 22 20 18 16 14 12 10 8 6 4 2 25 24 23 22 21 20 19 18 17 16 15 14 15 14 13 12 11 10 9
OUT
MACRO
The Macro Connector will be used to form a RJ45
ring between all the MACRO components of
the system. IN
For RJ-45 connector, standard CAT-5 or CAT-
6 cables with standard RJ-45 connection can
be used to form the ring.
OUT
For FIBER option, fiber cable with SC-style
connectors is used as communication medium MACRO
between the MACRO stations FIBER
IN
TX
RX
9
8
3
2
FIELDBUS
STA/MOD
RUN
RDY
ERR
5
FW LOAD
3
INTERFACE
RE-INIT
2
+24VDC
1
GND
RS-232
24VDC
INPUT
5 4 3 2 1
9 8 7 6
By holding RE-INIT micro-switch while power-
24VDC
up, the card will load the factory default
0.75 A continues
the CPU directly. Since the
1.8 A start up
parser on this port can be
turned off, it can also be
used for communicating to
the 3rd party devices over
RS-232
Hardware Setup 7
Turbo PMAC2 Realtime Express Controller
Push-button Switches
There are two push-button switches located at the bottom of the unit next to the 24V power
supply input. These buttons are accessible for reinitializing the board back to factory default
settings and loading new firmware revisions.
FW LOAD switch
The FW LOAD switch is used to download new firmware to the controller. In order to use this
switch, you need to hold the switch pressed while powering up the system. This will cause the
system to go to bootstrap mode, after which you can use Delta Tau’s Executive software to
download the new firmware to the controller.
RE-INIT switch
The RE-INIT switch will cause the controller to reset to factory default settings. To use this
function, you need to hold down the switch while powering up the system. This will stop the
controller to load your settings from the EEPROM and load factory default settings instead.
Although your settings is not loaded once you power up holding the RE-INIT switch, your
settings are still available in the EEPROM, until you overwrite them with a SAVE command.
Caution:
Loading the factory default settings for this specific controller will stop the
normal functioning of the system over the MACRO and/or Realtime
Express Ring. To get the controller to communicate over the ring, you
need to download the backup settings file available from Delta Tau’s
website at http://www.deltatau.com.
Connections
USB Connection, J1
This connector is used in conjunction with USB A-B cable, which can be purchased from any
computer store. The A connector is connected to a PC or hub device and the B connector plugs
into the J1-USB port. USB drivers are always included in the latest software packages from Delta
Tau’s website at http://www.deltatau.com.
Note:
Since the USB connector will connect the ground on the
controller and computer together, make sure that computer and
the controller have the same voltage ground, i.e., that they are
connected to the same power line.
Hardware Setup 8
Turbo PMAC2 Realtime Express Controller
Note:
Delta Tau Systems strongly recommends the use of RJ45 CAT5e or better
shielded cable.
Newer network cards have the Auto-MDIX feature that eliminates the need
for crossover cabling by performing an internal crossover when a straight
cable is detected during the auto-negotiation process.
For older network cards, one end of the link must perform media dependent
interface (MDI) crossover (MDIX), so that the transmitter on one end of the
data link is connected to the receiver on the other end of the data link (a
crossover/patch cable is typically used). If an RJ45 hub is used, then a regular
straight cable must be implemented.
Maximum length for Ethernet cable should not exceed 100m (330ft).
J2
RJ-45 Female Connector
1
Pin # Symbol Function
1 TX+ Transmit line
2 TX- Transmit line
3 Unused
4 Unused
5 Unused
6 Unused
7 RX + Receive line
8 RX - Receive line
Amber LED Activity Blinking indicates transmit/receive activity
Green LED Link Solid Green indicates a valid connection
Hardware Setup 9
Turbo PMAC2 Realtime Express Controller
Besides being able to configure Fieldbus systems like ProfiBus, DeviceNet, CANopen, and
ControlNET, SyCon can also configure Interbus, SDS, etc. The usefulness is that SyCon becomes
a common tool providing consistent user interface for all protocols for both masters and slaves.
SyCon checks the dependencies between the devices, checks for configuration conflicts and
warns 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, switch SyCon into a diagnostic mode. In diagnostic mode, you can
monitor status information of all devices connected to the network. For example, the node list or
slave diagnostic information can be monitored. If a slave is not operating correctly, it will be
displayed in a different color, normally red. The base address for master modules is located at
memory location $6D000 and for slave modules at $6D700.
J3
10- pin Male Flat ribbon header 9
10
7
8
5
6
3
4
1
connector (IDC)
Pin # Symbol Function
1 N.A. N.C.
2 HilDTR Data terminal ready (DTR)
3 HilTxD- Transmit Data (TXD)
4 HilCTS Clear to Send (CTS)
5 HilRxD- Receive Data (RXD)
6 HilRTS Request to Send (RTS)
7 HilDSR Data Set Ready (DSR)
8 N.A. N.C.
9 GND Signal Ground
10 +5V +5 VDC output
9 8 7 6
DB9 Female
Pin # Symbol Function
1 N.C.
2 +5VDC Positive Power Supply
3 RXD/TXD-P RS 485 Receive / Send Data –P
4 CNTR-P Control Counter TTL
5 DGND* Reference Ground *
6 +5VDC Positive Power Supply
7 N.C.
8 RXD/TXD-N RS 485 Receive / Send Data -N
9 N.C.
* E8 jumper should be in 1-2 position
Hardware Setup 10
Turbo PMAC2 Realtime Express Controller
Hardware Setup 11
Turbo PMAC2 Realtime Express Controller
CANopen
J4 5 4 3 2 1
9 8 7 6
DB9 Female
Pin # Symbol Function
1 N.C.
2 CAN_L CAN_L Bus line ISO 11898
3 CAN_GND CAN Ground
4 N.C.
5 N.C.
6 N.C.
7 CAN_H CAN_H Bus line ISO 11898
8 N.C.
9 N.C
DeviceNet
J4 5 4 3 2 1
9 8 7 6
DB9 Female
Pin # Symbol Function
1 V+ DeviceNet +24V Power Supply
2 CAN_H CAN High Signal
3 V- DeviceNet V- Reference Potential
4 N.C.
5 SHELL Shield*
6 CAN_H CAN High Signal
7 N.C.
8 N.C.
9 CAN_L CAN Low Signal
* E8 jumper should be in 2-3 position
CC-Link
J4 5 4 3 2 1
9 8 7 6
DB9 Female
Pin # Symbol Function
1 SLD CC-Link Shield
2 FG CC-Link Function Ground
3 DATA A CC-Link Data A
4
5 DG CC-Link Data Ground*
6 FG CC-Link Function Ground
7
8
9 DATA B CC-Link Data B
* E8 jumper should be in 2-3 position
Hardware Setup 12
Turbo PMAC2 Realtime Express Controller
25 24 23 22 21 20 19 18 17 16 15 14 25 24 23 22 21 20 19 18 17 16 15 14
N.C.
+12 ~ +24VDC +12 ~ +24VDC
N.C.
GND GND
Hardware Setup 13
Turbo PMAC2 Realtime Express Controller
Inputs wiring
There are 8 inputs on the I/O connector, which can be used as sinking or sourcing inputs.
13 12 11 10 9 8 7 6 5 4 3 2 1
13 12 11 10 9 8 7 6 5 4 3 2 1
25 24 23 22 21 20 19 18 17 16 15 14
25 24 23 22 21 20 19 18 17 16 15 14
IN 1
IN 1
IN 2
IN 2
IN 3
IN 3
IN 4
IN 4
IN 5
IN 5
IN 6
IN 6
IN 7
IN 7
IN 8
IN 8
+12 ~ +24VDC
+12 ~ +24VDC
GND
GND
Outputs wiring
There are 4 outputs on the I/O connector, which can be used in sinking or sourcing mode. Since
these outputs share some circuitary, you can only use one type (sinking or sourcing) at a time.
The maximum current that these outputs can supply is 900mA on each output.
13 12 11 10 9 8 7 6 5 4 3 2 1
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
25 24 23 22 21 20 19 18 17 16 15 14
+12 ~ +24VDC
+12 ~ +24VDC
GND
GND
Hardware Setup 14
Turbo PMAC2 Realtime Express Controller
Hardware Setup 15
Turbo PMAC2 Realtime Express Controller
Auxiliary Connector, J8
The 15-pin DB style female connector contains connections for handwheel quadrature input, two
ADC inputs, one DAC output and one pulse and direction output. Please check the software setup
and connector pin out sections for more information on how to use each of these features.
J8 AUX
8 7 6 5 4 3 2 1
DB15 Female
15 14 13 12 11 10 9
Handwheel Wiring
The handwheel wiring should be done as shown in the following figure. You can use differential
or single-ended signals from any quadrature encoder. Make sure that you tie the ground
connection of the encoder to the ground connection of the J8 if you’re planning to use single-
ended encoder. Since there is no power output pin available on J8, you need to power up the
encoder from a separate source (a.e. JTHW).
8 7 6 5 4 3 2 1
15 14 13 12 11 10 9
B/
A/
B
Quadratue
Encoder
+5VDC
GND
Handwheel Wiring
To read the handwheel counts, you need to implement these settings in Encoder Conversion
Table:
I8000=$78410
M1010->X:$3501,0,24,s
Hardware Setup 16
Turbo PMAC2 Realtime Express Controller
You can access the position of the handwheel. You can also use the same address ($3501) as a
master address for any of the motors (Ixx05)
J8 15 14 13 12 11 10 9 J8 15 14 13 12 11 10 9
Differential
Signal 2
Differential
Signal 1
-10VDC
+10VDC
To read the value of the ADCs, make sure that you have the correct strobe word written to the
ADCs. The ADC values can be read using M-variables with the following definitions:
I6806=$1FFFFF
M63->Y:$078406,8,8 ; Data type control SEL0 to SEL7
M63=$0;
M1001->Y:$78415,8,12,S
M1002->Y:$78416,8,12,S
Digital-to-Analog Connection
The digital-to-analog output has a range of ±10VDC and can source 20mA current. The output
signal is in differential mode and can be used as either differential or single-ended mode.
15 14 13 12 11 10 9
J8
DAC-
DAC+
GND
Hardware Setup 17
Turbo PMAC2 Realtime Express Controller
By changing the value of M1005 in a range of ±I6800, you can have ±10VDC output on your
DAC output.
Note:
Please note that the DAC output is a filtered PWM signal and is limited
by the max phase settings which cannot be changed because of
Realtime Express network requirements.
8 7 6 5 4 3 2 1
15 14 13 12 11 10 9
DIR-
DIR+
Pulse -
Pulse +
GND
By changing the value of m1006 you can select the direction and the frequency of the pulses.
Hardware Setup 18
Turbo PMAC2 Realtime Express Controller
J9 24V DC Input
Phoenix PCB Edge Connector
MACRO Connector
Based on the option that you have, either the MACRO fiber connector or the MACRO RJ45
connector will be installed on the controller.
• Option A provides the MACRO-ring fiber optic SC-style interface connector. The key
component on the board is U49.
Hardware Setup 19
Turbo PMAC2 Realtime Express Controller
• Option C provides the MACRO-ring RJ-45 electrical interface connectors. The key components
on the board are CN3 and CN4.
MACRO RJ45
Connector
CN3 and CN4
Front View
OUT IN
Pin # Symbol Function
1 DATA+ Differential MACRO Signal.
CN4: DATA+ input. CN3: DATA+ output.
2 DATA- Differential MACRO Signal.
CN4: DATA- input. CN3: DATA- output.
3 Unused Unused terminated pin. See schematic below.
4 Unused Unused terminated pin. See schematic below.
5 Unused Unused terminated pin. See schematic below.
6 Unused Unused terminated pin. See schematic below.
7 Unused Unused terminated pin. See schematic below.
8 Unused Unused terminated pin. See schematic below.
Hardware Setup 20
Turbo PMAC2 Realtime Express Controller
Front View
TX RX
Pin # Symbol Function
1 CT
2 CT
3 TX- / RX-
4 CT
5 CT
6 TX+ /RX+
7 CT
8 CT
Hardware Setup 21
Turbo PMAC2 Realtime Express Controller
The Thumbwheel Multiplexer Port, or Multiplexer Port, on the JTHW connector has eight input
lines and eight output lines. The output lines can be used to multiplex large numbers of inputs and
outputs on the port, and Delta Tau provides accessory boards and software structures (special M-
variable definitions) to capitalize on this feature. Up to 32 of the multiplexed I/O boards may be
daisy-chained on the port, in any combination.
26 24 22 20 18 16 14 12 10 8 6 4 2
Hardware Setup 22
Turbo PMAC2 Realtime Express Controller
1. Set i29=$78400
2. save
3. $$$
4. Follow the setup for Acc-34
M1000->Y:$78400,0,8 ;8 Inputs
M1001->Y:$78400,8,8 ;8 Outputs
Hardware Setup 23
Turbo PMAC2 Realtime Express Controller
SOFTWARE SETUP
Host Communications
To communicate with Turbo PMAC2 Realtime Express Controller from your host computer, you
can use any of the provided communication ports. The choice only affects the speed at which you
will be talking to the controller. You can communicate with the controller over the Serial
communication or Ethernet ports without any special software. A standard communications
program such as HyperTerminal can be used on these ports, but the PMAC Executive PRO 2
Suite is still recommended for development.
For Serial RS-232 communications, please check the J7 pin outs for proper serial communication.
For Ethernet communication, the default IP address is 192.6.94.5. You can use any terminal
program to talk to the controller over these ports.
In order to get the most out of the controller, we recommend using Delta Tau’s PMAC Executive
Pro2 Suite for communication. The PMAC Executive Pro2 Suite is designed to communicate
with all Delta Tau products. Although the suite includes setup software programs for different
types of controllers, you will not be using all of them.
The PEWIN32PRO2 is the main program used to set up your system and is needed for your
application development and troubleshooting. You can also use the PMAC Plot Pro2 to use the
powerful functionality of gathering information on the controller.
Software Setup 24
Turbo PMAC2 Realtime Express Controller
A window will appear, stating it cannot verify the compatibility of the driver with Windows XP.
Click on Continue Anyway button and the driver will be installed on your computer. You should
then be able to see the device in the Windows Device Manager.
Once you have established the connection between the controller and the computer, start your
software by clicking on Pewin32PRO2 icon either from your desktop or from the Start menu.
From the Setup menu, select on Force All Windows to Device Number.
Software Setup 25
Turbo PMAC2 Realtime Express Controller
Click Insert.
Select the communication port from the list. All the available Serial ports (COM1, COM2, …)
and Delta Tau USB products are present on this list.
After selecting the communication port with the controller, click OK.
The selected device is now added to the list, and it is referred as PMAC ##. You can have up to
32 PMAC devices defined on the software.
Software Setup 26
Turbo PMAC2 Realtime Express Controller
To check the communications, click Test. If communication is established, you will see the
following confirmation window:
In case of Ethernet Communication, the Pcommserver will report the result of PING command to
the network driver chip on the controller before trying to communicate to the controller CPU.
Once the communication is established, you can use any of the windows and tools provided by
the Pewin32PRO2 software and accompanied tools.
The Turbo PMAC2 Realtime Express Controller is a part of Turbo PMAC 2 family of controllers
which has been loaded with custom user-written phase and servo algorithms to communicate with
Panasonic drives.
The software consists of two parts. All you need to do is to change the download file
“panadwld.pmc” based on your particular Realtime Express network settings. The download file
will include a few other files in which you don’t need to change. This process is only necessary
the first time that you want to setup a network or if you have reset the card back to factory default
settings either by issuing a $$$*** command and saving it or after powering up while holding the
SW2 (Re-Init).
You can download these files from Delta Tau’s website www.deltatau.com
Once you open the PANADWLD.PMC file with PEWIN32Pro or Pro2 software and download it
to the controller, you need to issue a Save command. After the save command has been issued,
issue a command cycle power on the controller.
Software Setup 27
Turbo PMAC2 Realtime Express Controller
First, establish communication with the controller through the PEWIN32PRO2 software. From
the File menu, then select Open File and open “PANADLWD.PMC”. Make sure that you have
unpacked all the files included in the package under the same folder and that you have read/write
access to that folder.
There is sufficient explanation included in the file in order for you to edit the file easily. Here are
the main changes needed for system setup.
#define PanasonicMtrs 4
#define MACRO
If you do not have the MACRO option, comment out this whole line.
// #define MACRO
If you only have the Panasonic Realtime Express network, these settings will always
work for you and no changes are required.
If you have the MACRO option in addition to Realtime Express, and you want to have
higher PWM/Phase/Servo clock frequencies than the Panasonic Realtime Express default,
you can choose a setting from the following table:
Software Setup 28
Turbo PMAC2 Realtime Express Controller
Choose the best fitted PWM/Phase clock for your system and set the MAXPHASE,
MAXPHASE_TO_PHASE_DIV, PHASE_TO_SERVO_DIV and CLK_DIV_SAVE_M
based upon the table.
The MAXPHASE parameter will be controlling the frequency of Max Phase clock of
the PMAC which other clocks are divider from (I6800).
Please note that since the Servo clock in some cases might be faster than what Panasonic
drives accept, we should adjust the Servo calculation frequency of Panasonic motors by
changing their Ixx60 value. The proper value for Ixx60 is provided in the table. Please
note that changing of Ixx60 is only needed for Panasonic motors on the Realtime Express
network and not on any other motor on the MACRO ring.
Please refer to the Turbo PMAC Software Reference Manual for detailed information on
setting this parameter. Remember that the Panasonic’s A4N/A5N drives have high true
amplifier fault signal, so the default value will be: $800000
Hex 8 0 0 0 0 0
Bin 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Gate Type:
0: Use amplifier enable function
0: PMAC1
1: Don’t use amplifier enable function
1: PMAC2
Software Setup 29
Turbo PMAC2 Realtime Express Controller
I124,PanasonicMtrs,100=$800000
The user has to comment out the I-variables for motors which are not on the Realtime
Express network. In this example, only the first four motors are being used.
I110 = $1C05
I210 = $1C0D
I310 = $1C15
I410 = $1C1D
/*
I510 = $1C25
I610 = $1C2D
Note that you have to place the /* sign one line after the last motor number used for the
Panasonic network.
The user has to comment out the I-variables for motors which are not on the Realtime
Express network. In this example, only the first four motors are being used.
I125=$A4
I225=$124
I325=$1A4
I425=$224
/*
I525=$2A4
I625=$324
Note that you have to place the /* sign one line after the last motor number used for the
Panasonic network.
The user has to comment out the I-variables for motors which are not on the Realtime
Express network. In this example, only the first four motors are being used.
I103=$A6
I104=$A6
I203=$126
I204=$126
I303=$1A6
I304=$1A6
I403=$226
I404=$226
/*
I503=$2A6
I504=$2A6
Software Setup 30
Turbo PMAC2 Realtime Express Controller
I603=$326
I604=$326
Note that you have to place the /* sign one line after the last motor number used for the
Panasonic network.
8. Panasonic TX Block and MacID Number of motor xx: (Starting at line 267)
Ixx30 and Ixx31 must match the order block number and MacID of the ring even though
the node might be an I/O node. Slave I/O nodes should be put in the Ixx30 and Ixx31
variables after the Servo nodes. There can be no GAPS in the Ixx30/31 variables. For
example, you cannot use Motor 5's I530/531 variables if you only have four nodes. Also,
this code only supports one block slave nodes.
The user has to comment out the I-variables for motors which are not on the Realtime
Express network. In this example, only the first four motors are only being used. It is
assumed that the first A4N/A5N drive on the downstream of the TP2RTEX is connected
to Motor 1 and the MacID of it is set to 0. The second drive is connected to Motor 2 and
MacID is set to 1 and so on.
I130=0
I131=0
I230=1
I231=1
I330=2
I331=2
I430=3
I431=3
/*
I530=4
I531=4
I630=5
I631=5
Note that you have to place the /* sign one line after the last motor number used for the
Panasonic network.
The Ixx33 variable will determine the homing routine of motor xx. In the default
download file, all the motors are set to home, based upon index high.
I133,PanasonicMtrs,100=$11
If you want to have different homing routines for different motors, you have to replace
the Ixx33 definition with individual setting for each motor. As an example:
Software Setup 31
Turbo PMAC2 Realtime Express Controller
Although the PMAC can monitor and take action based upon the following error of each
motor, Panasonic suggests that the drive will determine the fatal following error and this
feature is not to be used in PMAC, hence the value is set to zero. However, if the user
decides to use the PMAC’s following error monitor, this I-variable can be used.
I111,PanasonicMtrs,100=0
Although the PMAC can monitor and take action based upon the following error of each
motor, Panasonic suggests that the drive will determine the following error and this
feature not to be used in PMAC, hence the value is set to zero. However, if the user
decides to use the PMAC’s following error monitor, this I-variable can be used.
I112,PanasonicMtrs,100=0
If the user chooses to use Ixx11 by setting it to a value other than zero, the same value
should be assigned to Ixx32.
I132,PanasonicMtrs,100=0
If the user chooses to use Ixx12 by setting it to a value other than zero, the same value
should be assigned to Ixx35.
I135,PanasonicMtrs,100=0
If the user has MACRO communication option enabled, the most common settings are
pointed out after this section of the file. For more detailed information on MACRO setup,
refer to the Delta Tau MACRO Software Reference Manual and the MACRO hardware
specific manual.
Software Setup 32
Turbo PMAC2 Realtime Express Controller
SAVE
$$$
M8123=8
21. Download any other user configuration files and/or programs, PLCs, etc.
I-Variable Definitions
As described in the PANADWLD.PMC file, there are certain I-variables that you need to set for
your ring setup. Also there are a certain number of resources and functions that have been limited
to the user, which are listed below. If a specific I-variable is not listed here, you may assume that
it has the same usage described in Delta Tau’s Turbo Software Reference Manual.
Software Setup 33
Turbo PMAC2 Realtime Express Controller
M8100 - M8191
P8191
Since these variables have been used in user-written servo, phase and PLCC1, writing into these
variables or changing their definition can cause unexpected behavior in the system.
Certain PMAC commands are not available on the Realtime Express Controller. These
commands can stop the controller by stopping the network from:
HMZ
HM1..32 (home search command from any motion program)
$$$ (To reset power cycle, or command M8123 = 8 in terminal window)
$$$*** but then must reload Panasonic, SAVE and power cycle
$ (To recover set M8123 = 5)
Ctrl-D (To recover, power cycle)
Any move until trigger
Programming DISPLAY commands
These I-variables should not be changed. They are specifically set for Realtime Express Network.
Software Setup 34
Turbo PMAC2 Realtime Express Controller
If you have absolute feedback and the value is being sent over the RX buffer in the same memory
location of Actual position, you can set up the power-on position address Ixx10 based on the
following values:
Software Setup 35
Turbo PMAC2 Realtime Express Controller
You can always turn this feature on by setting it to any number greater than zero. Make sure that
the fatal following error is less than the following error set on the drive, or the over current
protection will stop the drive with error 16 (Over-Current).
Note
When setting the Ixx11, make sure that you store the
same value in Ixx32 as the default value of your
following error. Ixx11 would be changed to a different
value while homing procedure and the value in Ixx32
would be written back once the homing is complete.
By default, the controller will not check for warning following error. The reason is that the
following error reported back to PMAC includes a delay because of the network update rate,
which can translate into unrealistic following errors at higher speeds.
Note
When setting the Ixx12, make sure that you store the
same value in Ixx35 as the default value of your
following error. Ixx12 would be changed to a different
value while homing procedure and the value in Ixx35
would be written back once the homing is complete.
Software Setup 36
Turbo PMAC2 Realtime Express Controller
NOTE
Ixx30 and Ixx31 must match the order block number and Mac
ID of the Ring even though the node might be an I/O node.
Slave I/O nodes should be put in the Ixx30 & 31 variables after
the Servo nodes. There can be no GAPS in the Ixx30/31
variables. For example, you cannot use Motor 5's I530/531
variables if you only have 4 Nodes.
Important:
Current Panasonic setup code only supports 1 block slave nodes.
Software Setup 37
Turbo PMAC2 Realtime Express Controller
Software Setup 38
Turbo PMAC2 Realtime Express Controller
Software Setup 39
Turbo PMAC2 Realtime Express Controller
Software Setup 40
Turbo PMAC2 Realtime Express Controller
Software Setup 41
Turbo PMAC2 Realtime Express Controller
In practice, the backlash take up and the backlash calculations should be completely invisible to
the end user. Since the commanded position of the Panasonic motors are actually changing
because of the backlash size, it takes some special care to use backlash compensation of the
PMAC on Panasonic motors.
1. Make sure motor present backlash is zero. If not, you have to set it to zero while the
motor is killed. Also make sure that the backlash direction bit in motor status word is
zero – if not, write a zero to it.
Motor# 1 2 3 4 5 6 7 8
Address Y:$0000E1 Y:$000161 Y:$0001E1 Y:$000261 Y:$0002E1 Y:$000361 Y:$0003E1 Y:$000461
Motor# 9 10 11 12 13 14 15 16
Address Y:$0004E1 Y:$000561 Y:$0005E1 Y:$000661 Y:$0006E1 Y:$000761 Y:$0007E1 Y:$000861
Motor# 17 18 19 20 21 22 23 24
Address Y:$0008E1 Y:$000961 Y:$0009E1 Y:$000A61 Y:$000AE1 Y:$000B61 Y:$000BE1 Y:$000C61
Motor# 25 26 27 28 29 30 31 32
Address Y:$000CE1 Y:$000D61 Y:$000DE1 Y:$000E61 Y:$000EE1 Y:$000F61 Y:$000FE1 Y:$001061
2. Home the motor or establish the reference for the motor position.
3. Set motor backlash take-up rate (Ixx85), motor backlash size (Ixx86) and motor
backlash hysteresis to desired values.
4. Command the axis as normal.
Software Setup 42
Turbo PMAC2 Realtime Express Controller
1. Make sure motor present backlash is zero. If not, set it to zero by changing the motor
backlash size (Ixx86) to zero.
2. Wait until motor present backlash becomes zero.
3. Set motor backlash take-up rate (Ixx85) and motor backlash hysteresis (Ixx87) equal
to zero.
4. Check the direction of the backlash by looking at bit 4 of the motor status word. If it is
equal to 1, write a zero to it.
Motor# 1 2 3 4 5 6 7 8
Address Y:$C0,4 Y:$140,4 Y:$1C0,4 Y:$240,4 Y:$2C0,4 Y:$340,4 Y:$3C0,4 Y:$440,4
Motor# 9 10 11 12 13 14 15 16
Address Y:$4C0,4 Y:$540,4 Y:$5C0,4 Y:$640,4 Y:$6C0,4 Y:$740,4 Y:$7C0,4 Y:$840,4
Motor# 17 18 19 20 21 22 23 24
Address Y:$8C0,4 Y:$940,4 Y:$9C0,4 Y:$A40,4 Y:$AC0,4 Y:$B40,4 Y:$BC0,4 Y:$C40,4
Motor# 25 26 27 28 29 30 31 32
Address Y:$CC0,4 Y:$D40,4 Y:$DC0,4 Y:$E40,4 Y:$EC0,4 Y:$F40,4 Y:$FC0,4 Y:$1040,4
In order to read/change/save any of these parameters, you have to follow the following steps. As
an example, we will disable the emergency stop input of motor #1.
M8179=0
2. Set PARAM_MTR_NUM (M8180) to desired motor number. Please note that this is the
motor number and not necessarily the MacID of the drive.
M8180=1
M8181=$001
Software Setup 43
Turbo PMAC2 Realtime Express Controller
M8182=$41
Software Setup 44
Turbo PMAC2 Realtime Express Controller
5. If writing to a parameter, set PARAM_DATA (M8183) equal to the desired value, but if
you are reading from drive or saving the values to EEPROM of the drive set
PARAM_NUM equal to zero.
M8183=$0
M8123=6
The received data from each drive consists of 16 bytes. These 16 bytes are transferred to PMAC
through Dual-Ported RAM style memory mapping, meaning lower 16 bits of X and Y memory
locations.
X-Memory Y-Memory
The $680XX represents the memory location for different RX block numbers. The block number
of each motor is defined by the user by setting the Ixx30 of each motor. If the default values in
the PANADWLD.PMC file are used, the block 0 represents motor 1, block 1 represent motor 2
and so on.
Block No. 0 1 2 3 4 5 6 7
Memory
$68080 $68084 $68088 $6808C $68090 $68094 $68098 $6809C
Address
Block No. 8 9 10 11 12 13 14 15
Memory
$680A0 $680A4 $680A8 $680AC $680B0 $680B4 $680B8 $680BC
Address
Block No. 16 17 18 19 20 21 22 23
Memory
$680C0 $680C4 $680C8 $680CC $680D0 $680D4 $680D8 $680DC
Address
Block No. 24 25 26 27 28 29 30 31
Memory
$680E0 $680E4 $680E8 $680EC $680F0 $680F4 $680F8 $680FC
Address
Software Setup 45
Turbo PMAC2 Realtime Express Controller
The first four bytes of data for each RX block includes various status bits:
Software Setup 46
Turbo PMAC2 Realtime Express Controller
As an example, we will assume motor 1 has the absolute encoder. By default, the drives are set to
incremental mode. So we need to change the mode to absolute encoders by changing the drive’s
parameter $0B to a value of $0.
M8180=1 // motor #1
M8181=$1 // write to parameter
M8182=$0B // parameter number
M8183=$0 // value
M8123=6 // execute the parameter read/write
Once the parameter is changed, save the data in the EEPROM of the device:
M8180=1 // motor #1
M8181=$101 // write to EEPROM
M8182=$0 // parameter number must be 0 for writing to EEPROM
M8183=$0 // value must be 0 for writing to EEPROM
M8123=6 // execute the parameter read/write
Once you have made this change on the drive, cycle the power off and on for the drive. For safety
reasons, the Panasonic drive will show error 40 representing absolute encoder system down error.
In order to clear this fault, first we have to clear the absolute encoder’s multi-turn data.
M8123=5
Since Ixx10 and Ixx95 are set up properly in the original PANADWLD.PMC file, the absolute
information will be read automatically on power-up or $$$ command. If you want to command an
absolute data read manually, you can use the $* command.
#1$*
Software Setup 47
Turbo PMAC2 Realtime Express Controller
The following error codes are possible in each of the elements above
To clear the fault from the drive/network, M8123=5 command can be used.
M8123=5
Software Setup 48