Instruction Bulletin: Communication Option
Instruction Bulletin: Communication Option
Instruction Bulletin: Communication Option
October 1998
Instruction Bulletin Raleigh, NC, USA
®
ALTISTART 46
Communication Option
MODBUS® RTU, MODBUS ASCII,
UNI-TELWAY™
ASCII Protocol for PC
VW3G46301
User’s Manual
DANGER
HAZARDOUS VOLTAGE
• Read and understand this bulletin in its entirety before installing or
operating ALTISTART controllers. Installation, adjustment, repair and
maintenance of controllers must be performed by qualified
personnel.
• Disconnect all power before servicing the controller.
• Do not touch unshielded components or terminal strip screw
connections with voltage present.
• Install all covers before applying power or starting and stopping the
controller.
• User is responsible for conforming to all applicable code
requirements with respect to grounding all equipment.
• Many parts in the controller, including printed wiring boards, operate
at line voltage. Do not touch. Use only electrically insulated tools
while making adjustments.
Before installing the controller:
• Disconnect all power.
• Place a “Do not turn on” label on the controller disconnect.
• Lock the disconnect in the open position.
Electric shock will result in death or serious injury.
Bulletin No. VD0C32S303A ALTISTART 46 Communication Option
October 1998 Table of Contents
1 1
2 3
3 2
5 5
1 1
6 6
9-Pin Male 2
4 4 2 9-Pin Female
7 7
SUB-D 3
8 8
3 SUB-D
Connector 4
9 6 6 9
4 Connector
5 5
7 7
ATS46 PLC
8 8 PC
Communication Module 9 9 Communication Port
System Safety
WARNING
LOSS OF CONTROL
• Control system designers must consider potential failure modes of control paths and, for
certain critical control functions, provide a means of achieving a safe state during and
after a path failure. An example of a critical control function is emergency stop. Separate
or redundant control paths must be provided for critical control functions.
• System control paths may include communication links. Consideration must be given to
implications associated with unanticipated transmission delays or failures of the link.
Failure to follow this instruction can result in death, serious injury, or equipment
damage. [1]
[1]
For additional information, refer to NEMA ICS 1.1-1984 (latest revision), Safety Guidelines for the Application,
Installation, and Maintenance of Solid State Control.
3. Connect the PC’s serial COM port to the ATS46 PLC Communication
Module. Use the optional PC cable, catalog no. VY1G461510
(ordered separately), or construct a cable using the pin-out illustrated
on page 1.
4. With power applied to the ATS46 controller, set up the controller
communication parameters (Table 1 on page 12) via the PC Terminal
Emulation Program. If you are using Microsoft® Windows® version
3.11 and earlier, see page 11 for instructions. If you are using
Windows 95 or a later version, refer to Appendix C for configuration
instructions.
5. When configuration is complete, remove power from the ATS46
controller, remove the PC cable, and connect the cable supplied with
this kit to the ATS46 Communications Module. Refer to “Wiring
Recommendations” on page 6 for more information about wiring.
1
TER/ 8
5V 0V 4
4.7 kΩ
D (B)
7
TX E
D (A)
3 5
9 SG=RD(B)
& 4.7 kΩ +5 V 4
8 0V
0V TER/ 3
5V 9 TX=D(A)
D(B) 7
2 RX=RD(A)
RD(B) 6
1 RS-232
5V
100 kΩ Side view of external contacts
RD (B) 5
RX & 6
2
RD (A)
100 kΩ
0V 0V
0V 4
D(B) 7
D(A) 3
TER/ 8
5V 9
120 Ω
Zt line terminator recommended
1 nF at both ends of the line
0V 4
D(B) 7
D(A) 3
OR
RD(B) 6
RD(A) 2
TER/ 8
5V 9
1
4
7
6
Data
TX 3 Transmission
SG 5 Common
Data
RX 2 Reception
WIRING RECOMMENDATIONS
Follow the wiring practices required by national and local electrical codes
in addition to the following:
• Use metallic conduit for all controller wiring. Do not run multidrop cable
and power wiring in the same conduit.
• Metallic conduit carrying power wiring must be separated from metallic
conduit containing the multidrop cable by at least 8 cm (3 in).
• Non-metallic conduit or cable trays used to carry power wiring must be
separated from metallic conduit containing multidrop cable by at least
30.5 cm (12 in).
• Whenever power wiring and multidrop cable cross, the metallic conduit
and non-metallic conduit or trays must cross at right angles.
• For the multidrop cable, use shielded cable with two pairs of twisted
conductors. Use the cable recommended for each multidrop bus
system shown.
• To equalize the voltage potential, connect the multidrop cable shield as
shown in Figures 3, 4, or 5.
120 Ω
1 nF
Connection Accessories
1 2
Connection Accessories
ATS46 ATS46
Controller A Controller B
Port 1 MODBUS 3 MODBUS 7
PLC Bridge Mux Port 2 Node Node
Port 3
Port 4
MSTR Block Address routing
talking to ATS46 Controller A:
RS-485
ModBus+
MB+ Address 10
RS-485 Wiring
Modicon BM85 Interface *
bridge mux
1
1 2 3 4
2
▲
3
RS-232C to RS-485 4
data enabled 5
converter
D(A) D(B) 0V
6
1 2 3 4 5 7 D (A)
WHT/ 8
WHT/ BLU/ BLU 9
BLU WHT 10 ATS46 Controller 5
BLU/ 11
WHT 12
13 ATS46 Controller
14 D (B) Slave Address 5
15 0 V Route Address 10:4:5
Wiring G
Interface * G
1
2
3 Wiring Interface *
4 1
5 2
6 3
7 D (A) 4
WHT/ 8 5
BLU 9 WHT/BLU
6
10 ATS46 Controller 4 7 D (A)
BLU/ 11 8
WHT 12 9
13 10 ATS46 Controller n
14 D (B) 11
15 0 V 12
G 13
BLU/WHT
G 14 D (B)
15 0 V
* 810-289-020 Female 15-Pin G
Wiring Interface: Telemecanique ABE-6SD15F or WAGO 810-289/W02 G
Cable: Belden 9841 or equivalent
CONFIGURATION
To configure the Windows Terminal program:
1. Access the Terminal menu by selecting the Accessories and Terminal
icons.
2. As shown below, select «Settings», «Terminal Emulation», and TTY
(Generic) from the Terminal menu.
NOTE: When you select the parity bit, the number of data bits changes
to 7. In this case, change the number of stop bits to 2 to restore the
number of data bits to 8. Then set the number of stop bits back to 1.
Saving the terminal configuration to a *.trm file is recommended.
[1] Read as number of bits, parity (O=odd, E= even, N= none), number of stop bits
Example: 8O1 = 8 odd bits, 1 stop bit.
where:
Data = question or response data in ASCII format
End = one or two end characters (CR or LF or CR LF or LF CR)
CR = carriage return (H‘OD’)
LF = line feed (H‘OA’)
NOTES:
• End characters are not shown in the remainder of this chapter.
• The Windows Terminal program does not use the backspace key
(deleting the last character entered). If the backspace key is used, the
echo of your message on the screen may seem correct, but it will be
refused.
• If the question or a requested value is not correct, the response is >N.
Example 2
MODBUS RTU protocol, address 1,
?CONF=PRO=RTU ADR=1 SPD=4800
speed 4800 bits/s, 8-bit format,
FOR=8N1
no parity, 1 stop bit
UNI-TELWAY protocol,
speed 19200 bits/s (format is fixed, ?CONF=PRO=UTW SPD=19200
address not modified)
Any parameters that are not modified retain their previous values (ensure
that these values are correct).
Configuration Help
Information Requests
To identify the ATS46 controller type and option being used, send the
following request:
Information
?INFO
request:
Response: >INFO:C1:V:1.0 IE01H TYPE:01H CS9B5AH ATS46D32:V1.1
DIAGNOSTICS
OK Green LED
RS232/422/485
Additional Diagnostics
Power Connections
Control Connections
The connection from STOP to PL must be made at all times for the
controller to run. As shown in Figure 11 on page 18, the control
connection scheme depends on whether the start command is to be
issued via the terminal strip (LOCAL mode) or through the PLC (LINK
mode). The control scheme also depends on the setting of the DLI bit
(W4060,1), as shown in Table 3.
WARNING
UNINTENDED EQUIPMENT OPERATION
If DLI = 1, the logic input (LI) is ignored unless configured for Force to
Local Control (W4022=4). All other functions of the logic input must be
actuated through the PLC command (W4060).
Failure to follow this instruction can result in death, serious injury,
or equipment damage.
S S
R R
T L P T L P
U U
O I L O I L
N N
P P
LINK LOCAL
STOP
RUN
ATS46 States
Non-resettable
fault
Non-resettable fault
Non-resettable fault
Controller re-initialization
WARNING
UNINTENDED EQUIPMENT ACTION
• Automatic restart can only be used for machines or installations that
present no danger to personnel or equipment in the event of automatic
restarting.
• Equipment operation must conform with national and local safety
regulations.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
2 Automatic Reset Not taken into account. This state follows a fault that can be reset
Fault without further intervention.
If R1 is configured as a fault relay, this type of
fault does not cause the R1 relay to change
state.
If R1 is configured for control of an isolation
contactor, this type of fault causes the R1
relay to change state.
3 Fault Reset on Causes the R1 relay to change When a fault is encountered, the drive will
Request state. Relay will re-energize check to see if (W4035,1=1) is set. If true, the
when a new run command is drive will reset once the fault is cleared. This
issued and the fault has cleared. will occur only if the fault is an auto restart
type. Refer to the Soft Start Controller User’s
Manual, part number VD0C32S301, for more
information on faults.
4 Non-resettable Requires cycling of control Requires cycling of control power to reset.
Fault power to reset.
Data Structure
The adjustment, control, supervision, and monitoring of ATS46 controllers
are performed using data (or objects) that are specific to this product.
The data consists of:
• Bits that execute logic commands and are designated Bi, where
i = Bit number. For example, B1 = Starter reset (request for online
reset).
• Words (of 16 bits) are designated Wx, where x is a word number.
Words are used to save either integer values (0 to 65535) or 16
independent logic states that are called registers.
Accessing Data
The tables at the end of this chapter list the parameters that can be
accessed via the communication link. The exact function of each
parameter and its effect on the behavior of the controller are described in
the ATS46 user guide, part number VD0C32S301.
Data including fault and monitoring information can only be read. Any
attempt to write to this data will be refused. The bits and words
corresponding to the adjustment, configuration and command
parameters can be written to as well as read.
Units
Words are expressed as unsigned integer values (0 to 65535), using the
units defined in the tables at the end of this chapter. For values that are
listed as decimal units in the register definition tables, the decimal point is
implied.
Example: W4037 = Initial torque as a percentage of Tn (e.g., 50 = 50% of Tn)
Ranges
The range permitted by the controller is specified for each parameter.
Where noted, 0 in the range column indicates that when the parameter is
set to 0, the function is disabled.
Example: When W4036 = 0, no maximum torque limit is specified;
otherwise, the adjustment range is from 10 to 200 (as a percentage of Tn).
Power-Up Values
Each time the ATS46 controller is powered up, it is initialized with the
configuration and adjustments stored in EEPROM memory (in LINK
mode, store adjustments with W4060,E or return to factory settings with
W4060,D).
The controller is systematically set to LOCAL control mode (commands
are expected on the terminal block). To control the ATS46 controller from
a multi-drop bus, it is necessary to assign the commands to LINK mode
by setting W4060,1 to 1.
LINK/LOCAL Management
ATS46 operating modes are only effective for accessing the command
parameters and have no effect on the configuration, adjustment, or
monitoring parameters.
Operation
In LOCAL mode, the terminal block is active and must be used to start
and stop the ATS46 controller.
In LINK mode, the serial link has write access to the commands. Only the
STOP terminal is active and will override all other commands.
If the controller is configured for LOCAL mode and LI is configured for
local control, activating LI will prevent the controller from switching to
LINK mode.
When the controller is switched out of LINK mode, the controller will run
if there is a RUN command present at the terminal strip.
In LINK mode, messages must be sent to the controller regularly (at least
one message every 10 seconds with UNI-TELWAY, MODBUS ASCII, and
MODBUS RTU protocol and every second in ASCII protocol). If a
message is not received, a controller serial link fault (SLF) occurs. The
communication check can be inhibited by setting bit NTO to 1, which
prevents the SLF fault from displaying. This is useful in setup and
troubleshooting; however, NTO should be set to 0 for normal serial link
command operation.
WARNING
LOSS OF CONTROL
Setting B4 or W4060,4 (NTO) to 1 disables serial link fault protection.
Provide alternate control paths when disabling serial link fault
protection.
Failure to follow this instruction can result in death, serious injury
or equipment damage.
UNI-TELWAY 0 1 2 3 4 5 6 7 8 9 A B C D E F
MODBUS 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
WARNING
UNINTENDED EQUIPMENT OPERATION
There is a shift of 1 between the address in UNI-TELWAY and
MODBUS protocols. When using MODBUS protocol, add 1 to each
address listed in the following tables.
Failure to follow this instruction can result in death, serious injury,
or equipment damage.
Code Accepted by
Request
(Hexadecimal Format) ATS46 Controller
Identification H'0F’ Yes
Protocol version H'30' Yes
Status H'31' Yes
Mirror H'FA' Yes
Read error counter H'A2' Yes
Counter reset H'A4' Yes
— Yes
Event data
— 2 Words
Identification Request
Code
Request
(Hexadecimal Format)
Answer code H'3F'
Product type H'16' for ATS46 controller
Sub-type H'46' for ATS46 controller
Product version H'xx' [1]
ASCII string [2] Catalog number (e.g. ATS46D17N)
[1]
xx
= software version. For example, enter H'21' for V2.1.
[2]
The first byte of an ASCII string always corresponds to the length of the string.
Status Request
State mask H'C7' indicates the significant bits for the current state
[1] xx = software version. For example, enter H'21' for V2.1.
Read and write requests allow access to several words within the request
limits described in Table 10. They may be coded as shown in Table 13.
Category 0 to 7
The answer to the “write objects” request is accepted if at least one word
is written. Reserved or unused words are read at 0 unless noted, and
writing them has no effect.
The following examples give typical read requests for the TSX7
programmable controller using a text block. The examples read words
W4022 to W4025 of the ATS46 controller, first using word object types
(Example 1), then using byte object types (Example 2).
H'07' H'68'
4023
Figure 14 illustrates the reception text block associated with the read
request in Figure 13. In the example:
• TxTi,V=H'66' (report)
• TxTi,S=9 (9 bytes received)
• + Reception Table
The data received in the reception table is offset by one byte. The
application program must correct the data (by successive offsets, for
example) before it is used.
H'06' H'68'
8045
Figure 16 illustrates the reception text block associated with the read
request in Figure 15. In the example:
• TxTi,V=H'66' (report)
• TxTi,S=10 (10 bytes received)
• + Reception Table
• The programming in Figure 15 enables the words to be correctly
registered in the reception table.
W4023
W4024
W4025
W4026
Event Data
The ATS46 controller transmits event data on its own initiative to the
UNI-TELWAY link master, without having first received a question. This
data is sent via the “unrequested data” request and does not require an
answer from the receiver.
Event data is sent in the following two cases:
• When a fault appears or disappears (change of state of W4061, bit 2
of status register).
• When the controller is forced to local control by one of its logic inputs
(change of state of the input), if an input has been assigned to this
function via word W4022.
Event data consists of two 16-bit words, transmitted in the following order:
• ETA status register (W4061)
• DFT fault register (W4069)
Using event data with the TSX programmable controller requires the
following:
• Correct configuration of the master coupler for the UNI-TELWAY link
• Regular monitoring of the indicators which display changes in the
value of the data
• Assignment of the data via the read request of the event data
The slave number can be between 1 and 31. The number 0 is reserved
for a broadcast message.
In either type of dialog, the master device initiates and controls all
exchanges with the slaves. If an incorrect exchange occurs, the master
device reiterates the exchange and declares the slave absent if no answer
is received after a given time has elapsed. Only one device may transmit
on line at any time. A slave cannot initiate an exchange, nor is lateral
communication (i.e., slave to slave) possible. The master device's
programming must therefore be designed to interrogate a slave and send
the data received to another slave.
Master
Controller
Slave
Slave K Slave
J L
WARNING
UNINTENDED EQUIPMENT OPERATION
There is a shift of 1 between the address in UNI-TELWAY and
MODBUS protocols. When using MODBUS protocol, add 1 to each
address listed in the parameter tables throughout this manual.
Failure to follow this instruction can result in death, serious
injury or equipment damage.
Accessible Data
Slave J
Master Slave K
Controller MODBUS addressing
Transmission
Input
Bits
Table
User Program Output
Bits
Input
Words
Reception
Table
Output
Words
Slave L
Exchanges
The master device always initiates data exchanges. The master device
waits for the slave's answer before transmitting the next message, thus
avoiding any conflict on the line. Operation in half-duplex is therefore
authorized.
Master
ATS46
Controller
MSTR BLOCK
Overview
When using a bridge multiplexer as shown in Figure 9 on page 10, the
Master (MSTR) function block can be used. The BM85 bridge/multiplexer
(bridge mux) operates as a MODBUS Plus node and provides four serial
ports that can be configured separately for the serial devices in your
application. BM85 models are available for RS-232, RS-485 or
MODICON MODBUS serial devices.
If you are not using a bridge mux but would like to use MODBUS
commands, consult the MODICON MODBUS Protocol Reference Guide,
part number PI-MBUS-300. (This document is available by fax-on-
demand from Schneider Automation at 1-800-468-5342. Select option 3,
documents 3001 and 3002.)
PLCs that support MODBUS Plus communications have a special MSTR
instruction with which nodes on the network can initiate message
transactions. The MSTR function allows you to initiate one of nine
possible network communications operations over MODBUS Plus. Each
operation is designated by a code, as described in Table 15.
The read and write MSTR instruction blocks are discussed on page 42.
For more information, refer to the user guide, MODICON Ladder Logic
Block Library, part number 840 USE 101 00.
Inputs
The MSTR block has two control inputs (see Figure 20). When the input
to the top node is ON, it enables the instruction. When the input to the
middle node is ON, it terminates the active operation.
Outputs
The MSTR block can produce three possible outputs (see Figure 20). The
output from the top node echoes the state of the top input; i.e., it goes ON
while the instruction is active. The output from the middle node echoes the
state of the middle input; i.e., it goes ON if the MSTR operation is
terminated prior to completion. The output from the bottom node goes ON
when an MSTR operation has been completed successfully.
First register
Terminates active data Operation terminated to capture
MSTR operation unsuccessfully BCKM intermittent
area
errors
MSTR
length Operation successful
The 4x register entered in the top node is the first of nine contiguous
holding registers that comprise the control block.
The integer value entered in the bottom node specifies length; i.e., the
maximum number of registers in the data area. The length must be in a
range between 1 and 100.
Read/Write Operations
Control Block
The registers in the MSTR control block (the top node) contain the
following information in a read or write operation.
Refer to the user guide, MODICON Ladder Logic Block Library, part
number 840 USE 101 00, for more information.
Table 18 lists the maximum register update times for a single ALTISTART
controller using MODBUS protocol. These times assume a baud rate of
9600 and no communication errors.
APPENDIX A
Table 19: Function Index Table
Description Type Characteristics Code Address [1] Page
Return to factory settings C Active on positive edge CMD, INT W4060,D 26
Select closed loop (torque control)
Control loop F CLP W4035,0 25
open loop (voltage regulation)
C Run command CMD, RUN W4060,5 26
A Acceleration ramp time ACC W4043 24
A Initial torque during acceleration TQ0 W4037 24
A Maximum torque during acceleration TLI W4036 24
A Limit current ILT W4039 24
A Boost level BST W4028 25
Start A Start time too long TLS W4033 25
A Stator loss compensation LSC W4027 25
D Controller ready ETA, RDY W4061,1 27
D Steady state ETA, 8 W4061,8 27
D Short-circuited ETA, 9 W4061,9 27
D Current limited ETA, LIM W4061,D 27
D Acceleration phase ETA, B W4061,B 27
C Freewheel stop command CMD, CAL W4060,8 26
C Decelerated stop command CMD, CAD W4060,7 26
C Braked stop command CMD, CAF W4060,6 26
C Control motor deceleration in cascade DMC W4060,3 26
Stop A Decel: deceleration ramp slope DEC W4044 24
A final torque during deceleration EDC W4038 24
A Braking: braking current BRC W4041 24
A adjustment of braking time EBA W4042 24
D Stop phase ETA, A W4061,A 27
C Reset thermal state CMD, RTH W4060,A 26
A Trip threshold (underload) TLS W4031 25
Motor protection A Motor nominal current In W4026 25
F Motor thermal protection THP W4034 25
D Motor thermal state LTH W4064 27
Controller protection F, A Trip current threshold OIL W4040 24
F Default assignment of phase rotation PHR W4032 25
D Phase rotation state PHE W4065 28
Mains supply
D No mains supply ETA, E W4061,E 27
D Mains supply frequency ETA, F W4061,F 27
D Current LCR W4062 27
D Cos (ϕ) motor power factor COS W4067 28
Measurements D Torque LTR W4063 27
D Elapsed time meter TFR W4068 28
D Reset elapsed time meter TRE W4060,C 26
F Test on low power motors SST W4035,5 25
Special operation
C Cascade motor operation CSC W4035,6 25
Types: C = Command F = Configuration A = Adjustment D = Display
[1]
When using MODBUS protocol, add 1 to the address.
APPENDIX B
Table 20: Function Index Table by Address
Address [1] Description Type Characteristics Code Page
Communication & terminal
W2290 F Product address ADR 12
block management
Communication & terminal
W2291 F Protocol PRO 12
block management
Communication & terminal
W2292 F Transmission speed SPD 13
block management
Communication & terminal
W2293 F Character format FOR 13
block management
W4022 I/O management F Assignment of logic input LI LI 24
W4023 I/O management F Assignment of logic output LO1 LO1 24
W4024 I/O management F Assignment of analog output AO AO 24
W4025 I/O management A Analog output scale ASC 25
W4026 Motor protection A Motor nominal current In 25
W4027 Start A Stator loss compensation LSC 25
W4028 Start A Boost level BST 25
W4031 Motor protection A Trip threshold (underload) TLS 25
W4032 Mains supply F Default assignment of phase rotation PHR 25
W4033 Start A Start time too long TLS 25
W4034 Motor protection F Motor thermal protection THP 25
Select closed loop (torque control)
W4035,0 Control loop F CLP 25
open loop (voltage regulation)
W4035,1 Fault & alarm management F Automatic reset ARS 25
W4035,2 I/O management F Assignment of relay R1 R1 25
W4035,3 I/O management F Assignment of logic output LO2 LO2 25
W4035,4 I/O management F Analog output range AO1 25
W4035,5 Special operation F Test on low power motors SST 25
W4035,6 Special operation C Cascade motor operation CSC 25
W4036 Start A Maximum torque during acceleration TLI 24
W4037 Start A Initial torque during acceleration TQ0 24
W4038 Stop A Decel: final torque during deceleration EDC 24
W4039 Start A Limit current ILT 24
W4040 Controller protection F, A Trip current threshold OIL 24
W4041 Stop A Braking: braking current BRC 24
W4042 Stop A Braking: adjustment of braking time EBA 24
Types: C = Command F = Configuration A = Adjustment D = Display
[1] When using MODBUS protocol, add 1 to the address.
APPENDIX C
If you have Windows 95, or a later version, to configure the ATS46
controller for MODBUS or UNI-TELWAY communications, first access the
HyperTerminal utility or a comparable Terminal Emulation Program.
Configure the COM port, terminal properties, and ASCII set-up as
illustrated in Figures 21 through 22.