Appendix G: ASCII Commands/Serial Control
Streszczenie: Sterowanie przez interfejs ASCII: narzędzie ASCII Command Line Interface w CME 2 oraz połączenie szeregowe pojedynczego wzmacniacza i połączenie multi-drop (RS-232 + CAN) – schematy opisane tekstem.
EN: ASCII commands and serial control: the ASCII command line tool, single-axis and multi-drop serial connections.
Dotyczy: program CME 2 do konfiguracji i strojenia serwonapędów oraz napędów krokowych Copley Controls (m.in. Xenus, Accelnet, Stepnet, Accelus, Junus)
Źródło: dokumentacja producenta (Copley Controls CME 2 User Guide); opisy diagramów – opracowanie Multiprojekt
This chapter describes how to configure and operate an amplifier by sending ASCII commands over the serial bus. Contents include:
- The Copley ASCII Interface
- CME 2 ASCII Command Line Interface Tool
- Single-Axis Serial Connection
- Multi-Drop Serial Connection
COMPATIBILITY: This chapter applies to Accelnet, Xenus, and Stepnet amplifiers only.
G.1:1 Copley ASCII Interface
An amplifier’s RS-232 serial bus can be used by an external control application (HMI, PLC, PC, etc.) for setup and direct serial control of the amplifier. The control application can issue amplifier commands from the set of ASCII format commands that make up the Copley Controls ASCII Interface.
For more information, see the Copley ASCII Interface Programmer’s Guide.
G.2:2 CME 2 ASCII Command Line Interface Tool
As described below, the CME 2 ASCII Command Line Interface tool provides a simple way to enter Copley ASCII commands.
Use the ASCII Command Line Interface to Enter Commands
1.1 From the Main screen, choose ToolsASCII Command Line to open the tool.
22. Enter an ASCII Command in the Command field.3
3. Press the Enter key to send the command to the amplifier. Observe the Response field. If a value is returned, it is preceded by the letter “v.” In the following example, the get command was used to retrieve the amplifier RAM value of variable 0x32 (actual position).
An error code would be preceded by the letter “e.”
TIP: To view an error definition, hold the mouse pointer over the error number.
For more information, see the Copley ASCII Interface Programmer’s Guide and the Copley Amplifier Parameter Dictionary.
G.3:3 Single-Axis Serial Connection
For RS-232 serial bus control of a single axis, set the CAN node address of that axis to zero (0). Note that if the CAN node address is switched to zero after power-up, the amplifier must be reset or power cycled to make the new address setting take effect.
Diagram description (text version): RS-232 connection of a single amplifier: PC, PLC or HMI for ASCII control → serial COM port for RS-232 → 9-pin D-sub connector → SER-CK “Serial Cable Kit” → RJ11 connector of the Copley amplifier with ASCII over RS-232. The CAN ADDR switch on the amplifier is shown at 0 – the address must be set to zero before power-up or reset.
G.4:4 Multi-Drop Serial Connection
A serially connected amplifier can be used as a multi-drop gateway for access to other amplifiers linked in a series of CAN bus connections. Set the CAN node address of the serially connected amplifier (gateway) to zero (0). Assign each additional amplifier in the chain a unique CAN node address value between 1 and 127. For more information on CAN node address assignment, see CAN Network Configuration . Use 120 Ohms termination on the first and last amplifier.
Diagram description (text version): Multi-drop network: the PC, PLC or HMI for ASCII control is connected through the serial COM port (RS-232), 9-pin D-sub and SER-CK “Serial Cable Kit” to the RJ11 port of the first Copley amplifier (ASCII over RS-232, CAN ADDR = 0). That amplifier is connected via its CAN port (RJ45) and CAN network cable (UTP CAT.5E Gigabit Ethernet) to the next amplifiers in a daisy chain (RJ45 in/out on each CAN port); each further amplifier has its own CAN ADDR switch setting. A 120 Ohm terminator must be used on the first and last node of the network. Addresses must be set before power-up or reset.
Słowa kluczowe
ASCII, RS-232, linia poleceń, multi-drop, CAN, SER-CK, adres CAN, terminator 120 Ohm



