wiring, setup, & ascii programming for c-series controllers

107
Techno, Inc. 2101 Jericho Turnpike, Box 5416 New Hyde Park, NY 11042-5416 Phone: (516) 328-3970 Fax: (516) 358-2576 www.techno-isel.com [email protected] HTM00430301 Wiring, Setup, & ASCII Programming For C-Series Controllers (IT116G, C10, C116 & C142)

Upload: others

Post on 09-Dec-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Wiring, Setup, & ASCII Programming For C-Series Controllers

Techno, Inc.2101 Jericho Turnpike, Box 5416New Hyde Park, NY 11042-5416Phone: (516) 328-3970Fax: (516) [email protected]

HTM00430301

Wiring, Setup,& ASCII Programming

For C-Series Controllers( IT116G, C10, C116 & C142 )

Page 2: Wiring, Setup, & ASCII Programming For C-Series Controllers

i

TechnoWiring, Set-up, And Programming

For C-Series ControllersStatement of Limitation of Warranties and Liability

Although this manual is believed to be accurate, Techno makes no warranty, expressed orimplied, that it is free of errors, or that any product described herein is suitable for anyparticular application. Techno assumes no responsibility for loss or damages resulting fromerrors in this manual or from proper or improper use of the products described herein.Techno reserves the right to alter its hardware, software, and any applicabledocumentation without notice.Techno makes no warranty that its products are fit for any useor purpose to which they may be put by the customer, whether or not such use or purpose hasbeen disclosed to Techno in specifications or drawings previously or subsequently provided,and whether or not Techno's products are specifically designed and/or manufactured forsuch a purpose.

THIS WARRANTY IS IN LIEU OF ALL OTHER WARRANTIESEXPRESSED OR IMPLIED. ALL OTHER WARRANTIES, INCLUDING,BUT NOT LIMITED TO, ANY WARRANTY OF MERCHANTABILITY ORFITNESS FOR A PARTICULAR PURPOSE, WHETHER EXPRESSED,IMPLIED, OR ARISING BY OPERATION OF LAW, TRADE USAGE, ORCOURSE OF DEALING, ARE HEREBY DISCLAIMED. THERE ARE NOWARRANTIES THAT EXTEND BEYOND THE DESCRIPTION ON THEFACE HEREOF.

Page 3: Wiring, Setup, & ASCII Programming For C-Series Controllers

ii

IntroductionHow To Use This Manual ................................................................................................ 1

Technical Support ............................................................................................... 2Conventions Used In This Manual........................................................................ 2

Chapter 1 Setting Up C-Series ControllersEquipment ........................................................................................................ 4Controller Box Indentification Callouts ............................................................................. 4

IT116G Controller ................................................................................................ 4C10 Controller ................................................................................................. 4.1C116 Controller ............................................................................................... 4.2C142 Controller ............................................................................................... 4.3Descriptions of Controller Callout ..................................................................... 4.4

Factory Jumper and DIP Switch Settings ..................................................................... 4.5IT116G Controller Card DIP Switch Settings .................................................... 4.5C-Series Interface Card Jumper Settings ............................................................ 5

Full Step/Half Step Jumper ............................................................................................. 5Home/End Of Travel Switch Jumper ............................................................................... 5Voltage Selector ........................................................................................................ 6Baud Rate/Acceleration Rate Jumper ............................................................................ 6Attaching Motor Cables .................................................................................................. 7Connecting the Serial Cable........................................................................................... 8Guidelines For Motor Cables And Wiring........................................................................ 9

Motor Cables ...................................................................................................... 9Wiring and Grounding ......................................................................................... 9

Placement Of The Amplifiers .......................................................................................... 9Control Panel Elements ................................................................................................ 10Hooking Up Impulse Control ......................................................................................... 11Attaching Input/Output Devices .....................................................................................12

Connecting Output Devices .............................................................................. 14Connecting Input Devices ................................................................................. 15

Attaching The Power Cable, Starting, And Using The Controller .................................... 16Downloading Programs ...............................................................................................17Using A Memory Card With The Controller .................................................................... 18

Chapter 2 Sample ProgramsSingle Axis Motion With Initial Home............................................................................. 21Dual Axis Motion With Initial Home ............................................................................... 22Three Axis Motion With Special Homes ........................................................................ 23Repeated Motion And The Send Command .................................................................24Drilling A Pattern ...................................................................................................... 25

Chapter 3 Programming The ControllerCommand Modes ...................................................................................................... 29

Immediate Mode...............................................................................................29Program Mode ................................................................................................. 29

Software Handshaking ................................................................................................. 29Converting Units For Motion Commands ...................................................................... 30Command Descriptions ...............................................................................................31

Absolute Motion ................................................................................................ 32

Table of Contents

Page 4: Wiring, Setup, & ASCII Programming For C-Series Controllers

iii

Circular Interpolation ......................................................................................... 35Clear Battery Backed RAM............................................................................... 38End Program .................................................................................................... 39Enter Program Mode ........................................................................................ 40Home Motors .................................................................................................... 41Identify Axes Positions ...................................................................................... 43Impulse Operation............................................................................................. 44Incremental Motion ............................................................................................ 46Loop/Branch ..................................................................................................... 49Move Until Impulse ............................................................................................ 52Peek ...................................................................................................... 54Poke ...................................................................................................... 55Read Input Port ................................................................................................. 56Select Interpolation Axes .................................................................................. 58Send Synchronization Character ....................................................................... 60Set Circle Direction .......................................................................................... 61Set Homing Speed ........................................................................................... 63Set Outputs65Software Reset ................................................................................................. 68Specify Axes .................................................................................................... 69Start Execution ................................................................................................. 71Stop Execution ................................................................................................. 73Time Delay ...................................................................................................... 74Trace ...................................................................................................... 75Wait For Synchronization Character .................................................................. 77Zero Absolute Position ..................................................................................... 793-Axes Interpolation On/Off ............................................................................... 81Command Summary/Index ................................................................................ 83Immediate Mode............................................................................................... 83Program Mode ................................................................................................. 83

Chapter 4 TroubleshootingGuidelines For Troubleshooting .................................................................................... 85

No Holding Torque On The Motor ...................................................................... 85Holding Torque Present, But Motor Stalls During Travel ..................................... 86Inputs Or Outputs Are Not Functioning ............................................................... 87No Communication With The Controller............................................................. 88

Chapter 5 Technical ReferenceSpecifications Of Controller Card ................................................................................. 90Error Messages ...................................................................................................... 90Self-Test Program ...................................................................................................... 90Download Program ...................................................................................................... 91ASCII Codes 92A Brief Lesson In Hexadecimals ................................................................................... 93

Base Ten ...................................................................................................... 93Base Sixteen .................................................................................................... 93Converting Between Bases .............................................................................. 942's Complement ............................................................................................... 95

Chapter 6 AppendixConnector Pinout For Interface Card 4.*, 5.* ................................................................. 97

Page 5: Wiring, Setup, & ASCII Programming For C-Series Controllers

iv

LIST OF FIGURESFactory Jumper Settings .................................................................................................4IT116G .......................................................................................................................4C10 .......................................................................................................................4.1C116 .......................................................................................................................4.2C142 .......................................................................................................................4.3IT116G DIP Switch Settings ............................................................................................4.5C-Series Factory Jumper Settings ..................................................................................5Full Step/Half Step Jumper ..............................................................................................5Home/End Of Travel Switch Jumper ................................................................................6Voltage Selector .............................................................................................................6Baud Rate/Acceleration Rate Jumper .............................................................................6Attaching Motor Cables to the Gantry ..............................................................................7RS232 Serial Cable Wiring .............................................................................................8Controller Front Panel Layout ........................................................................................10Impulse Control Pinout ..................................................................................................11Auxillary Input/Output Connector ....................................................................................12Input/Output Panel Layout ..............................................................................................12Output Port 2 Pinout ......................................................................................................14Connecting Output Devices ...........................................................................................14Connecting to Output Group 1 .......................................................................................15Connecting to Output Group 2 .......................................................................................15Connecting Input Devices ..............................................................................................15Connecting to Input Group 1 ..........................................................................................16

Page 6: Wiring, Setup, & ASCII Programming For C-Series Controllers

iii

1

SETTING UP C-SERIESCONTROLLERS

Page 7: Wiring, Setup, & ASCII Programming For C-Series Controllers

1

How To Use This ManualCongratulations on your purchase of a Techno C-Series Controller. The unit comes fully assembled andconsists of the following:

Integrated driver and Interface card (IT116 G only)2 or 3 stepper drivers (2A for C10; 3.6 A for C116; 6A for C142)1 Techno Interface Card (4.0 I/O for C10 and C116; 5.0 I/O for C142)1 Logic Power Supply1 Enclosure (C10, C116, C142)

The Isel C-Series Controller is a microprocessor-based stepper motor controller. The controllers cancontrol 3 axes (x, y, and z) with linear interpolation available on any 2 axes (with the C10, C116, or C142)or all 3 axes (only with the C142). The IT116G is a single-axis controller. Motion commands need onlyspecify displacements and speeds. The software on the Interface card calculates and performs allacceleration and deceleration ramps from the incoming command data.

The controller can be used with various mechanical systems (for example an x-y table), and a personalcomputer (PC) to form automated manufacturing systems.

Commands and programs can be loaded directly from a dumb terminal or through a software developmentsystem which runs on IBM-PC compatibles. Communications are through a serial bus. Programs loadedinto the controller can be executed directly or stored. Once a program is stored in the controller, the PC isonly necessary for modifying the program and can be disconnected if desired.

This manual gives the basic information you need to use your Isel C-Series Controller.

!!!!! All users should read the first section of the manual. This section gives instructions for setting upthe controller, including important guidelines on wiring and the use of motor cables, andinformation on connecting input/output (I/O) devices. This section also tells you how to run aSelf-Test Program which you should run immediately after you set up the equipment in order totest the controller and the mechanical system. This is followed by information on downloadingprograms and communicating with the controller.

!!!!! The second section of the manual gives a series of example programs, with explanations, whichyou may find useful to quickly further your understanding of the controller's functions. You mayalso find these programs useful as they are for your purposes.

!!!!! The third section explains the commands used in programming the controller's Interface Card .Information is given for commands in both immediate and program modes.

!!!!! The fourth section is a troubleshooting guide. It indicates some problems you might encounterwhen first using your controller, along with some steps to isolate, and possibly remedy, thedifficulties.

!!!!! The fifth section gives reference material for the controller. It gives the error messages and theircode numbers, specifications for the Interface Card, listings of important programs, andinformation on hexadecimal numbers.

Page 8: Wiring, Setup, & ASCII Programming For C-Series Controllers

2

Technical Support

Please contact your local dealer or Techno for technical assistance.

!!!!! By Phone: Call us at (516) 328-3970, and specify that you need technical support.It is helpful if you have all the necessary necessary background information ready beforecalling.

!!!!! By Fax: Send your questions and detailed background information to us by fax at(516) 358-2576. Please remember to include both your phone number, fax number ande-mail address on the transmittal.

Conventions Used In This Manual

The following conventions are used in this manual.

Italic type is used to highlight terms that are defined or referred to in the manual.

Bold italic type emphasizes important information within the text.

Text that appears on your computer screen or that needs to be input by you is written in this print.Text that appears on your computer screen or that needs to be input by you is written in this print.Text that appears on your computer screen or that needs to be input by you is written in this print.Text that appears on your computer screen or that needs to be input by you is written in this print.Text that appears on your computer screen or that needs to be input by you is written in this print.

This symbol appears to the left of a note containing importantinformation related to the text.

THIS SYMBOL APPEARS TO THE LEFT OF A WARNINGREGARDING THE POSSIBILITY OF EQUIPMENT DAMAGE IFCERTAIN GUIDELINES ARE NOT OBSERVED.

"""""

#####

Page 9: Wiring, Setup, & ASCII Programming For C-Series Controllers

iv

FrontCurrentPotentiometer(2.0 to 3.6 A)

Reset / DiagnosisSwitch

Start ButtonStop Button

9 Pin Comm PortOutputL.E.D.s

InputL.E.D.s

Reset L.E.D.

PowerL.E.D.

EquipmentExamine the contents of your box to make sure you have all the equipment needed to set up your IselC-Series Controller. This should include:

IT116G, C10, C116, or C142 enclosure (pre-assembled as described on page 1)9 to 9 pin RS232 serial cablePower cord1, 2 or 3 motor cables (depending on controller model)1 Techno Linear Motion Software & Manuals CD-ROM

If you are missing any of the above equipment, contact Techno immediately.

Controller Box Identification CalloutsIT116G Controller

Rear Inputs (4)

Outputs (4)

Main PowerSwitch

AC Input

MotorCableConnector(DB 9 PinFemale)

Terminalsfor ExternalUse Functions

4

Page 10: Wiring, Setup, & ASCII Programming For C-Series Controllers

v

C10 Controller

Rear

FuseTray

Not InUse

AC PowerInput

MainPowerSwitch

Front

Current Limit Potentiometer (2A Max.)

Reset Button

Start ButtonStop Button

9 PinComm. Port

Amplifier#1

HomeSwitch L.E.D.Temperature

Overload L.E.D.

Amplifier#2

Amplifier#3

4.0Controller

Card

Error L.E.D.

4.1

Page 11: Wiring, Setup, & ASCII Programming For C-Series Controllers

vi

C116 Controller

Front

Main PowerSwitch

Amplifier#1

Amplifier#2

Amplifier#3

4.0Controller

Card

9 PinComm. Port

AmplifierPowerButton

E-StopButton

Start ButtonStopButton

Memory Card Slot

ResetButton

Rear

ACPowerInput 8 Inputs

16 Outputs

Motor CableConnections

* HomeErrorTempSupply

*NOTE: Same for all amplifiers.

Not In Use

4.2

CurrentSelector

*

VoltageL.E.D.s

*

}

All L.E.D.s

Not In UseInput

L.E.D.sOutputL.E.D.s

Page 12: Wiring, Setup, & ASCII Programming For C-Series Controllers

vii

C142 Controller

Rear

ACPowerInput Motor Cable

Connections

Front

ResetButton

StartButton

StopButton

9 PinComm. Port

Amplifier#1

* HomeSwitch L.E.D.

*TemperatureOverload

L.E.D.

Amplifier#2

Amplifier#3 5.0

ControllerCard

* ErrorL.E.D.

* CurrentSelector

* PowerL.E.D.

Main PowerSwitch

AmplifierStartButton

E-Stop Button

Memory Card Slot

*NOTE: Same for all amplifiers.

4.3

Not In UseNot In UseInput

L.E.D.sOutputL.E.D.s

8 Inputs

16 Outputs

Page 13: Wiring, Setup, & ASCII Programming For C-Series Controllers

viii

Description of Controller Callouts

Main Power Switch � Turns AC power on or off to the unit.Amplifier Power Button � Allows amplifiers to be energized.Start Button � Momentary button to start program residing in controller�s memory.Stop Button � Momentary button to pause program residing in controller�s memory. Itstops the program, even in the middle of a move and waits for instructions in the form ofreset button or start button.E-Stop Button � Shuts down power to the entire controller including logic signals.Reset Button � Ends execution of program. If start button is pressed, program starts atbeginning. Does not wipe memory clean, if Battery Back Memory/Memory Card used.Reset/Diagnosis Switch � Only on the IT116G. Ends execution of program. If start buttonis pressed, program starts at beginning. Does not wipe memory clean. Diagnosis switchsends error codes to comm. port.Amplifier Card � Electronics card that provides power to a single step motor.Memory Card Slot � Accepts Isel 32K Memory Card slot upon which programs can be stored.Current Potentiometer � Selects the amount of current (A) supplied to the step motor. Max.current is 3.6A/phase on IT116G; 2A/phase for C10; 3.6A/phase for C116; 6A for C142.Power LED � Indicates power is supplied to unit or amplifier.Reset LED � Indicates reset button is pressed. No holding torque to motors.Input LED � Indicates input �x� has been activated.Output LED � Indicates output �x� has been activated.Error LED � Indicates error has occurred with the particular axis. See error codes on page 90.Temperature LED � Indicates overload of amplifier. That particular axis has no power to it.Home LED � Indicates limit switch is engaged or circuit is open. Unit will not run until thiscondition has been cleared.AC Power Input � Power cord is plugged in here. 120VAC or 230VAC depending on model.9 pin comm. Port � Null modem communications port. Must use Null modem cable or youmay potentially damage computer�s serial port.Inputs � Digital inputs which can be programmed through the comm. port (See page 15 forwiring information).Outputs � Digital Outputs which can be programmed through the comm. port (See page14 for wiring information).Terminals for External use Functions � Wiring terminal for external use of functions suchas Start, Stop and Reset.Motor Cable Connections � Motors cables are attached here and other end goes to motorhousing. DB9 connectors are used for IT116G and C10. Amphenol connectors are used forC116 and C142.Controller Card 4.0 - Main logic card for the C10, C116 controller.Controller Card 5.0 - Main logic card for the C142 controller.Fuse Tray � Holds fuse for the C10 controller.

4.4

Page 14: Wiring, Setup, & ASCII Programming For C-Series Controllers

4

Factory Jumper and/or DIP Switch SettingsThese factory settings are appropriate for the purposes of most users. If they do not serve yourpurposes, you should adjust the settings on the card as needed. The following diagram of theInterface Card is provided to assist you.

If you are using your controller with a Techno slide or table you will not needto adjust any settings. Skip this section and proceed to the section onAttaching Motor Cables.

ONLY THE MOST EXPERIENCED USERS SHOULD MAKE ADJUSTMENTSTO THE INTERFACE CARD. IF YOU ARE UNSURE ABOUT MAKING SUCHADJUSTMENTS, CALL TECHNO. IMPROPER JUMPER SETTINGS WILLCAUSE THE CONTROLLER TO FUNCTION IMPROPERLY.

IT116G Controller Card DIP Switch Settings

This section gives the jumper settings on the IT116G Controller Card (not applicable to InterfaceCard 4.0 and Interface Card 5.0).

!!!!!

"""""

CurrentPotentiometer

32 KB Eprom32 KBSRAMDIP

Switches

ON 1

2

3

4

5

6

*960

0ba

ud

*default setting

*25H

Z/m

s

ON=Full Step · OFF=Half Step

SW1 SW2 Baud RateON OFF 4800OFF ON 9600*

SW3 SW4 Accel .RateON ON 25HZ/ms*OFF ON 50HZ/msON OFF 75HZ/msOFF OFF 100HZ/ms

SW5 - Step SizeON - Full StepOFF - Half Step*

DIP SWITCH SETTINGS

*default setting

4.5

Page 15: Wiring, Setup, & ASCII Programming For C-Series Controllers

5

Full Step/Half Step JumperThis jumper determines whether typical motion will be in full steps or half steps. The jumper consists ofthree bars, one for each axis. If a bar is attached to the side labelled "1", then that axis is in full step motion.If the bar is attached to the side labelled "2", then that axis is in half step motion. See diagrams below:

We do not recommend full step motion, since this generally produces excessive vibration.

Home/End Of Travel Switch JumperThis jumper activates the home (limit) switches and the reference switches. Switches 1, 2, and 3, are thehome switches for the X, Y, and Z axes respectively. Switches 6, 5, and 4 are the reference switches for theX, Y, and Z axes respectively. The default setting (illustrated below) activates all three home switches whilemaking all reference switches inactive (because Techno tables do not normally use the reference switches).Note that the side labelled ON is the inactive side.

All Axes in Half Step Mode (Default) All Axes in Full Step Mode

Full/HalfStep Jumper

VoltageSelector

Baud rate/Accel ratejumper

1 2 1 2 1 2

X Y Z X Y Z

1 2 1 2 1 2

C Series 4.0- 5.0 Interface Card Jumper Settings

This section gives the jumper settings on Interface Card 4.0 and Interface Card 5.0 (notapplicable to IT116G). There are four important jumper blocks on the card which areset as follows:

Jumper Block Factory SettingFull /Half Step Half step for all axesHome/End of Travel Switch Home Switches ActivatedVoltage Selector +5VBaud Rate/Acceleration rate 9600 Baud/75 Hz/ms

Start

Stop

Reset

RS232

Home/Endof TravelSwitch Jumper

Page 16: Wiring, Setup, & ASCII Programming For C-Series Controllers

6

The positions of switches 3 and 4 set the acceleration rate for all motors. The default is75Hzms. This, along with the other possible settings, is illustrated below:

Voltage SelectorThis jumper sets the voltage for drivers. The default setting is +5V.

+5V (Default) +12V

Baud Rate/Acceleration Rate Jumper

The same jumper is used to adjust the baud rate and the acceleration rate. The positions ofswitches 1 and 2 set the baud rate for communication. The default is 9600 Baud. This andthe other possible settings are illustrated below:

Once all jumpers are set, you can proceed with the setup of the controller

Use the diagrams on the previous pages, showing the rear of the controller, as a guide forattaching motor cables and hooking up I/O devices as described in the following pages.

HomeSwitches

ReferenceSwitches

XYZ

ON

1 2 3 4 5 6

XYZ

ON

25HZ/ms

1 2 3 450HZ/ms 75HZ/ms 100HZ/ms

ON ON ON

1 2 3 4 1 2 3 4 1 2 3 4

ON

19200 baud

1 2 3 4 9600 baud (default) 4800 baud 2400 baud

ON ON ON

1 2 3 4 1 2 3 4 1 2 3 4

Page 17: Wiring, Setup, & ASCII Programming For C-Series Controllers

7

Attaching Motor Cables1. Place the controller in close proximity to the machine.

MAKE SURE THAT THE CONTROLLER IS SWITCHED OFF WHENCONNECTING AND DISCONNECTING CABLES. REMOVING A CABLEWITH THE POWER ON TO THE CONTROLLER CAN DAMAGE THEELECTRONICS.

2. Connect each motor cable by attaching the male end to the appropriate output axisconnector on the controller's rear panel (see previous pages), and the female end tothe corresponding axis/motor (see diagram below). The cables should be hooked upas follows:

Connect Cable from: Output X or 1-Axis to X-axis (Motor 1) of tableOutput Y or 2-Axis to Y-axis (Motor 2) of tableOutput Z or 3-Axis to Z-axis (Motor 3) of table

The motor cables are arranged in this way only if you are using thecontroller with a Techno Slide Table. If you are not using the controllerwith a Techno table, then you may designate each motor as you wish, oraccording to the configuration of the mechanics.

When connecting the DB9 cables, be sure to plug the end of the cable into the socket fully,and then tighten the thumb screws on either side or else the unit may short out causingdamage to the electronics as well as the motors.

"""""

>

>>

!!!!!

X axis (Motor 1)

Y axis (Motor 2)

Z axis (Motor 3)

Top View

Page 18: Wiring, Setup, & ASCII Programming For C-Series Controllers

8

Connecting the Serial CableAttach the appropriate end of the RS232 Serial cable to the RS232 Interface on the front ofthe controller (see pictures on pages 4 thru 4.3). Attach the other end of the Serial Cable toyour PC at COM Port 1 or 2.

# If your PC has a 25 pin COM Port, you will need a 9 to 25 pin RS232 converter .

# If your PC has a 9 pin COM Port, use the 9 to 9 pin cable enclosed.

THE SERIAL CABLE HAS ONE END SPECIALLY MARKED FOR THEPC (PC/AT). THE OTHER END IS FOR THE CONTROLLER. DO NOTREVERSE THE CABLE OR DAMAGE MAY RESULT TO THECONTROLLER AND/OR THE COMPUTER.

The following diagrams illustrate the correct wiring setup between the controller and the PCas provided by the enclosed (9 to 9 pin only) specially wired RS232 serial cables:

IT IS ESSENTIAL THAT THE ENCLOSED RS232 SERIAL CABLE IS USEDTO PROVIDED THE CORRECT WIRING BETWEEN THE CONTROLLERAND THE PC. UNDER NO CIRCUMSTANCES SHOULD STANDARD RS232CABLES BE USED FOR COMMUNICATION BETWEEN THE COMPUTERAND THE CONTROLLER. THIS WILL CAUSE DAMAGE TO EITHER THECOMPUTER, THE CONTROLLER, OR BOTH.

The serial controller makes use of standard circuits and should operate with most PC�s.

"""""

123456789

123456789

1234567.20.25

Wiring with 9 to 9 pin RS232 Cable

Wiring with 9 to 25 pin RS232 Cable

RS232 Port ofC Controller

PC COM Portwith 9 pins

PC COM Portwith 25 pins

RS232 Port ofC Controller

123456789

"""""

Page 19: Wiring, Setup, & ASCII Programming For C-Series Controllers

/

��������������������4�����������������������������������������������������-�I��

�������������������������������������7�9�������

�����������������������������3����������������������� :%##�2���$�2��"��������F��-���

Guidelines For Motor Cables And Wiring

1(/2��/ )23�6��*,60�7,2 0,--/0@��.*��.0 )76-.0�. /2 ),2

,� (/��,--,1)23�36)4/-)2/�'���.)-60/� ,�.4(/0/� ,� (/�/

+/.�60/��7.2�0/�6- �)2�4.+.3/� ,�*,60�7,2 0,--/0'

Motor Cables

C������������"#�����/��#�!CH�������������

� ������� ������'�������������������������������+���������"%!CH��� �

� ( �� ��) ����� ��������������� ����� ��� �� ����� ������������������������������������������������������������������)��������������������������������������� ��������������� ������������

� (����*�+�,��*-�(-�(��*��,./�+01*�������#-/2,�3��&�*�������������������� ��� �� �!CH�������������������������������������������������������

� ( �� ������������ ����� ����� ���������� � ����������� � ��������������������������4������4������������!�������������������������������������������������������/����������������������������������������������������� �

Wiring and Grounding� ( �� ��������������� ������ �������������� � ���������

� ��� ���

� F���������!������������������������������������������

� 4�� ������������������5���4������������������������������ ��������������������

� !����� 6����������������� �������������/���4������� ����������������������������������������()*������������

Placement Of The Amplifiers

2��������� ������!���!���������$����$!�:���������"���%��$!���$����

��!������'� ��!�!��������!��$�C������!���$�%�$���������'��2����!���������

�%������"���%��$!��!�$�D9�$��'

Page 20: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

�$%

�#

"���

"����

1�2#%3

-$%�

!��

!���

!��

!���

!��

!���

4#2�

�%%#%

5�2.

���3

4#2�

�%%#%

5�2.

���3

4#2�

�%%#%

5�2.

���3

!��

!���

!���

(F)

���������������������

������������������������������������������������������������������

���������"#$������""%�������������� ��!�����������������" ����������������%!��������

9������������������������������������������������������������� �������3�����������������������������������������(�� ����������������������������.���D/�6/����E/���������������������1"/�1�/�����1����������� �

�����'����7'����9'

��!' ����1" ����������1� ����1�

�2'

���H'

��������������������

�/��60/� ,� 602�,����,1/0� ,� (/�7,2 0,--/0��/�,0/

0/+,8)23�.2*�.+�-)�)/0�'���.)-60/� ,�4,��,�1)--�0/�6- �)2

4.+.3/� ,� (/�.+�-)�)/0��.24� ,� (/�7,2 0,--/0'

"'�;��������������������������������������������������

4,�2, �0/+,8/��70/1��)2�+)44-/�,���-. /'� (/�/��70/1�

.0/��/0+.2/2 �.24�.0/�2, �+/.2 � ,��/�0/+,8/4'

�'�H��� ����������������������������������������� ����������������������

���������������/�����������������������������������������

Control Panel Elements�!'�-*C9;�(F7(�!�*;������������������������������������������������

�������������������

Page 21: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

�2'�;9>9;9F�9��C(��?������������������������� ��������������������������/������������������������������.����!���.������J�����K�������/����/��������������/�����������������������*>>��C��������� ����������������������/�����������������������������*>>��(���� �������*F/������������������������<�������(������������������������.������������������7(-�������������������

��'���!;��������������� ����������������������������������������������F���������4������������������������������������ ���(��������/������������������������������������������ ������������������?*19����������!���������������������!;�97����������-������������������78��

�7'���*-��������������������������������(����������������4�������/�����������������������������������������������������������.������������������������������������������������������������������!;����������!���������������������*--97����������-������������������78��

�9'�;9�9������������������� ������������������������������������������������������

�>'�919;H9F�6�������������������� �������������������������������������� ����������/�9������� �����/����� ������������� �����������������������3���� ��������������!;������������������������������������

�H'�72:�;�����(F-G���!�������;������ ���������������������������������� �������������/�������/�������'�

Hooking Up Impulse Control

6����E��&��"�9�!������$����!���������'��)%���9��������:�!��������$���

��������$����$�9!��&��"�9�!��!�&���!@�!<������!�!������'��2����7���

7���$����$!��������C���"�9�!������$�������#������!���%��!��������

$�D9�!����:�����$��$��'

(�� ������������������ ����������������������������������������������.�����������/� ���������0�������������������������������������������������%'����������������������/�����/�������������������!�������������������72:�����������������.�� �����������)����������!���������������������������������������

�����

�(�

��"��

�#

�$%

Page 22: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

��������4����������������

"'�H��� ���������������������������������������������������������������������

�'�,�������������������������������������������������������������������

�'�(�����������������������������������������������������

'�,������������������������������������������� ������������������

+'�(�����������������������������������������������������������

%'�������������������������� ���������������������

A'�;�����������������������������;������-�;��'�������

C������������������������������������������/����������������������������������������

������.�� �����)��������������������������������������������������������������������������!�����72:�����������������������������������������������������������������������������������%����������"#'/��������������������������������������������������������������������������������)����������������������������������������.�� �()*������������������������

;������� �������F�������� ;������� �������F�������� F��������*������@+8 (����������F�������� HF7

Attaching Input/Output Devices��������)��������()*'����������������������������������������������/��������������������������������������%'���!�������������������������������������

�������� �����

��#�$���(�

�#*�%����3

��

��

��

��

��

��

��

��

��

���

��

�.�

�.�

�.�

�.�

�.�

�.�

�.�

�.�

���

��� ����� �����

Page 23: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

������������������������������������()*������������(F-G��-*;��

� �����������������������8@����������������� ����������'�

� ��������������������������HF7��������'

� ���������������������������/�������9"����9$������������������/������������������������������"����$�

����������������������������()*��������*G�-G��-*;�"�

� �����������������������8@����������������� ����������'�

� ��������������������������HF7��������'

� ���������������������������/�������!"�"����!"�$������������������/��������������������������������"����$�����������������"�

����������������������������������������������(F-G��-*;�����*G�-G��-*;�"�

�"'�H��� ��������������������������������������������������������������������

��'�,�������������������������������������������������������� ��������)�������

��'�(�������������������)�������������������������������������� '���������������������������������������������+'�-��������������������4�������������������������������

*�����������������������/�����(��������������*����������H�����"����� �� � �������������������������������������������������������������������������������������������������������������������������?����/� ������������ ������������.���� �+#�!'������������������������������(��������*������H�����"������������8@�����HF7'�

(�� �������������������������������������/� ����� �������������������������� ��������������������)�������/���������������������������()*��������"#$����������������������������� ���������3�������'����������� 8����� ����������"!���������0������������������

�"'�(��������������������������������������������������'������������

��'�������������������������������������8@��������������������������()*������

��'�(����������������������������������������������������������'�����������

� '�����������������������������������������HF7��������������������������()*�����

*G�-G��-*;���������������72:��������������������������*G�-G��-*;�"����������������������������*G�-G��-*;�����������������������������������

Page 24: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

����������������� ������@8��(�������������� �#����+�#

*G�"�*G�$

�H�����

-� *�������" "

H�� ��� ���$ ��A ��� ���% ��+ �� �� ��� ��+ +��� ��" ��% %

���������������������*G�-G��-*;��� ����������������������������72:�����������-����������������������72:�����*G�-G��-*;�����������������������������������'�������������������������������������������������������

���������������H����������������������������?������������������������������������������������������� �������������������������������� ��������������������������������,��������������@+8'������������� �"����!��������#���� �������������������

������������� �. �� � ����� �������

��������� �������������������������������������������������������

49� &�� ���������

(���� %++�"*������H����" %++�:*������H������ %++�#

Connecting Output Devices

*�����������"����������������������*������������������J������������K�� ����������(�����������/�����������������4���������������������H��'���������������������������������������������C���� �������������������*F/�����������������������������������������������������������������������������/���������������������������������������������C���� �������������������*>>/���������������������������������4��������������������������������������������������������������������������������������������

�������������������������������������� �������������������@8��'�������������������������������������������������/��������������������������������

Page 25: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

F������������� ���������8��'��������������� 8��������������������������� ������������������������������/�����������������.���������� ����������!������������

�'������������ ����5������������������0� ������ �������'�������������

� ��������� ����������������������6���0���

Connecting Input Devices

C�������������������������������������������/������������������������������������������������������������������������������8��������������������������������������������������������(���������������C���������������������������������������������������/�������������������������0���������������������� ����������������

#.�������# ��� ��

4���������#���

����������6�-�%+��

"#L��������������������� 9.�����

�����

�(F"�(F��H�����

}��

�.�

�.�

�.�

�.�

�.�

�.�

�.�

�.�

���

� 8

H��

�������0� ����

�������,���

�������0� ����

}H�����

,��� �.��������������� ��!� ����*�������:����"%

8�����������+8/�"�8�����.������8'

Page 26: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

C���� ����������������/����������������������������������������������������������������������������������������������������������������

4�����0� ��

F������������� ���������8��'��������������� 8����������(�������������/����������������.���������� ���������/�������� �� 6��������0� ������� ����������������'�����

������ �����

Attaching The Power Cable, Starting, And UsingThe Controller

�"'������������������������� ��������������������������������������������������������������������������������-�����������������������""#8!��������

��'��������� ����-������������������7*���������

� (����������(��������(�����4����������!�

� 9�������������� �������������������������������� �� �������

�������������������������� ��� ��-�������

�1�4����������� ������(�9,�� �� ����&(:4�,2���������������

� F��������������������� �� �� ����#(:4�,2���������������

� 6�������������� ����������������������4�� �� ����#�%;�- <�<�9�

��������������

� F���� ���#�&*,�*��������7*�����������������������������������������������������>��������� �����������������������������������������������������-������������������

��'����������������������� ���������������������������������������������������������������%'�

H��

� 8 }��

��

��

��

��

��

��

��

��

���

9.�����������!� ����(������"����$

8������(�����H��������������'

H�����

Page 27: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

)%���������$����$����!�����:�$<�:������9������������9$�������@�$����!�

����$���/"�$&����������#9��������������������9���$���%������

��$��$��������%$�����%���������$����$�#���9$���&��������<:�!�'

��"���"�!������"�$&�����!�����!�����C������9$��&�!������&@����

���!�:�����$�C������������$����$�%$�"��9$���&���'�)%���������$����$

!��������!�����%9������@���������"����!�������F@� $�9#��!������&'

� '�;�����������������������/�� ������������������������������!;��������������������"����������� ������������������������

��������������������������������������������������D�����6��.���������������!��((�������������������������������������������������������������� ���� ����������-����!����������+#�����������������������*����������������������������������-�/��������3���� ���������������������������������4�������������

1����C��������%%��9����!�:�������!��$�&$�"����C�$��9!�)�+��7

��"����#��!'� ���!��%���!���$�&$�"�������!��#��$9��:������!�"���

��$"������$�����$"������"9��������$�&$�"'� �����$"�����!��9���#�

!������� ���#�9�@��������#��!@���!����#��@������$���'

(������� ����� �����������.������������������������ ���=���!��������������������������������������/����������������������������� �������������������������4����

�������������������������������������+���F����������������������������� �����������������4������ ������������ ������������ �������� � ���%#5���

����������������� �������������������� ������4��� �� �4������6�

�+'�>�� /������������������������������/� �������������������������������������������������� ������������������������������������������������������������������������������������������������������������������ ����������������� �

Downloading Programs

*���� ����������4�������������������� �������������������������������������������������/�� ����������������������������������������������6������������ �����4�����������������������������������������������(�� ��������������������������������������/� ������������������������������������ �������

���������������������������/����� ���/�������������������������������������4��������������4�������������������������������(����������������/������������������������� �������������������������������

��������������������� ������������������������������������������������������������������������������ ����������������1 �����5

�� ����������������������� �����-�#44�� ����� ���� �������� ���� �����

����������� ��������������������

Page 28: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

���������������������������������+���F������������������������ ����������������4������ ������������ ������������ �������� � ���%#5�������������������� �������� �� �����4���������#����

Using A Memory Card With The ControllerG��������������� ������������1���� �����������������������������������������������1���� �����������������������������������������������������������6�������������������� ��������������������������������������������������������������-����1���� ��������������������������� �������������$L/�"%L/�������L�

�������������1���� �����������������������

� ,����������1���� �����������������������������������������������������"#'�

� (������������������������������������������������������������������������������������F�����������������������4�����������")�B���������������� ���������

���������������������������1���� ������

� (����������1���� ��������������1���� ����������

� � �����������������������������5������� ���-������������

1�������(�������������� �� ����"�������������:������������������������������'�

� *������(������������/�� ���������������78��������������������������������� �������������������������������������1���� �����

�.8)23�.��0,30.+� ,�.�+/+,0*�7.04�1)--�.6 ,+. )7.--*

/0.�/�.2*��0,30.+���0/8),6�-*�� ,0/4�,2� (/�7.04'���/

�60/� (. �*,6�4,�2, ��.8/�.��0,30.+�,2 ,�.�7.04

7,2 .)2)23�.��0,30.+�*,6�1.2 � ,��0/�/08/'�� (/�+/+,0*

7.04�7.2�,2-*�(,-4�,2/��0,30.+@�.- (,63(� (. ��0,30.+

+.*��/�.��-.03/�.�� (/�+/+,0*�7.�.7) *�,�� (/�7.04'

�/�7.0/�6-� (. �*,60��0,30.+�)��2, �-.03/0� (.2� (/

+/+,0*�7.�.7) *�,��*,60�7.04'��2,�1.02)23�+/��.3/�1)--

.��/.0�)��.��)-/�)�� ,,�-.03/��,0� (/�+/+,0*�7.04@�.24

,2-*�.��+67(�.��1)--��) �,2� (/�7.04�1)--��/�7,�)/4� ,�) '

6����������������������1���� �����/�����������������������������������������(�� ������� ����������������������������������������������������� ��������������������-��� ����������1���� ������

�������������������������������������������

� (����������1���� �����������������������������������������1���� ����������� -������������������������������������������������"#'���!���� ���������������������������������������� ������������������������������

Page 29: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

6������������������������������������������ �������������������� ���������������������������F�������������-�������������������������������������*��������������������������1���� �����/������������������������������������������������������� �������-��

Page 30: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

SAMPLE PROGRAMS

Page 31: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

����������������������������������������������������������������.�����������������������������������6����� ��������������������������������� ��

� 6����� ������������������.���������������������������� ������������������������������� ����������������������� ���������

� 6����� ��������������4������������������������.�������������������������������.������������������������������������������������������� ������������������4������������������������������ �������� ��������������������6��������������������������������������������������������.��������

� >�� /� ����� ������������� �������������������������������������������������������������� �������������������*��������/���������������� ����������������/������������������������ ����������������� ����������������

�������������������������������������������������������������������

1(/2�0622)23�.2*�,�� (/�/��.+�-/��0,30.+�@�1/�.48)�/

*,6� ,�4,��,�1) (,6 �.2*��,0 �,�� ,,-�. .7(/4� ,� (/�A�

.=)��.24�1) (,6 �.2* ()23�+,62 /4�,0��) )23�,2� (/

.�-/'

Single Axis Motion With Initial Home

78�

78��888

78�

>�

8��8�?5$88

8�.�8?5�88

"

78�

�78���������������������������������������������������������������������D��.���"'���������� ��.����������������������������������

�78��888�����������������������������������?�����������������������������###������)�������

�78�!���������������������/�����������������������������������������������������������������!�����������������������������������������������������.��������������������.���������������������������������������������������

� >�����������������������D��.��

� 8��8�?5$88�������������������������������������D��.��"#"%���������� ������������������+##������)�������

Page 32: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� 8�.�8?5�88�����.�������������������������������D��.�� #%���������������������������##������)�������

� "������������������������������!�����������������������������������������.�������������� �

�78��������������������������������������������.������������������������ ���?������������������.�������.����������������������������������������������������������

Dual Axis Motion With Initial Home

78�

78��8885�888

78�

>�

>�

8��8�?5$888585�888

8�.�8?5�885�8�?5$888

"

78�

�78���������������������������/���������������/������������������D�.���"'���������6��.����'������������������������������������"@�M�'�

�78��8885�888?������������������������������.����������!�����������������###�����)���������������������D��.�������###������)���������������������6�.��

�78������������/���������������/���������������������������������������������������

� >������������������������D��.��

� >������������������������6��.����F�������������D�����6��.���������������������� �����������������A�'/����������������/����6���������������������������������D�

� 8��8�?5$888585�888,����.����������������������������������.���������D��.�����������"#"%���������� �������������������������� ����+###������)�������������6��.����������������#������/������ �����D��.����������������

� 8�.�8?5�885�8�?5$888,�����������������������������������?��������D��.����������� #%����������������������������������������##������)�������1������/�����6��.������������"#"%���������� ����������������������������+###������)�������

Page 33: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� "�����������������������������������������������4����������������

�78������������������������������������������������������������.����������������������������� ���?���������������������������������.�������������������������������������/�D���������������6/��������������������������������������

Three Axis Motion With Special Homes�����.�������������������.��� ������D/�6/�����E'��F���������������������������������������������������������

78>

78��8885�8885�888

78�

>$

>�

8�8?5�885�8�?5$8885�8�?5�8885.�8�?5�888

8.�8?5�885.�8�?5$8885�8�?5�8885.�8�?5�888

"

7��

�78>(��������������/�����������������������������������.��/�����D�"'/�����6���'/���������E�� '��������������������������������"@�@ MA'�

�78��8885�8885�888!�����������������/���������������������������������������.������D��.����������������###������)������&�����6��.���������������###������)������&���������E��.���������������"###������)�������

�78��������������������������������������������������������������������������������/�������/�����������������������������������������������������������������������������������������������������������

� >$�����������������������������E��.��� '���������D��"'��.����������������� @"M+'�������E��.������������������������D��.��

� >�������������������6��.��������6��.����������������������������������������������������������������������������D��.����(������������������������������������/�����6��.��������������������������D��.��

� 8��8?5�885�8�?5$8885�8�?5�8885.�8�?5�888,����.�������������������������������������������������D��.��������� #%���������� ������������������������������##������)�����������6��.����������"#"%���������� �����������������������������+###�����)������������������������������������������E��.���������>��������.���������������"#"%����������������������###������)�������������������������4����"#"%�������������������������

Page 34: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� 8�.�8?5�885.�8�?5$8885�8�?5�8885.�8�?5�888,�����������������������������������������D��.���������� #%��������������������������##������)�������������6��.����������"#"%�������������������������+###������)�������������E��.��������������������������������� ������������

� ",����������������������������������������������!������������������������������������

�78�,�������������������������������������������.��������������������������� ���?���������������.���������� ���������A����������������������������������������������������������

Repeated Motion And The Send Command�����.��������������������������������������������������������������������������������������

78>

78��8885�8885��888

7��

>�

>�

>�

8�8�?5$888585�8885�8�?5�8885.�8�?5�888

8�8?5�885�8�?5$8885�8�?5�8885.�8�?5�888

8.�8?5�885.�8�?5$8885�8�?5�8885.�8�?5�888

�>$

�?858

$$8

�?5."

"

78�

�78>(��������������/�����������������������������������.��/�����D�"'/�����6���'���������E�� '��������������������������������"@�@ MA'�

�78��8885�8885�888!�����������������/���������������������������������������.������D��.����������������###������)������&�����6��.���������������###������)������&���������E��.���������������"###������)�������

�78��������������������������������������������������������������������������������/�������/�����������������������������������������������������������������������������������������������������������

� >�>�>��������������������������D/�E/�����6��.������������ ���F���������������������������������������������������.��������������������������.��������������������������������(�������������������������������������/����������������������������E/�6/�����D�

Page 35: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� 8�8�?5$888585�8885�8�?5�8885.�8�?5�888����������������������������������������.��������D��.�����������"#"%����������+###������)��������������6��.������������#���������������������������������������������������E��.����������������������"#"%�����������###������)�����������������������"#"%�����������###������)�������

� 8���8?5�885�8�?5$8885�8�?5�8885.�8�?5�8888�.�8?5�885.�8�?5$8885�8�?5�8885.�8�?5�888������������������������.���<������������.��������������������������������.�����

� �>$�����������������!��((�����������A+������������@'����������;����������������-������������������������������������-�/��������������������������

��?858������������������������������������������������!��((����������%#����������������N'����4��������������������������;������������!�������������������A/��.�����������������������������.������������

� $$8,����������������������� ����������+�����������"�.�+#'���������������������������++/����������������������+������������������������

� �?5."���������������������������������������������������������������������������:�������:'�������������������%�������������?����/�����.���������������������/������������������������������������!��((������/��.�����������

� ",��������������������������������������������������!������������������������������������

�78�,����������������������������������������������.��������������������������� ���?�����������������/�����������.���������� ��������"����������������

Drilling A Pattern��������������������������������������������������������%�����/������������������3�����������" ����7(-����4������������������������"������������������������������������� ���B�������������������������������������������������� ������������/������+ #������M"����'�

���������;���"O���������O����������;����

!��������������������������������������������������������"'�H�����������������-�������;���"�'�H���"B��������/����������'�;��������'�+���������� '�H�����������������-�������;����+'�����"B����4����/���������%'�;�������+'��������������A'�����

�����������

�����������

Page 36: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

78>

78�

8�$8B5�"8885�$8B5�"8885�85�"8885�85�"888

8��$�5�"8885�85�"8885��$�85��8885.�$�85�"888

��$5.�

8��$�5�"8885�>?�5�"8885�85�"8885�85�"888

8.�$�5�"8885�85�"885��$�85�8885.�$�85�"888

��$5.�

"

78�

�78>(��������������/�����������������������������������.��/�����D�"'/�����6���'���������E�� '��������������������������������"@�@ MA'�

�78��������������������������������������������������������������������������������/�������/�����������������������������������������������������������������������������������������������������������

� 8�$8B5�"8885�$8B5�"8885�85�"8885�85�"888����������������������������������������������������������������D��.������6��.������������������+#$���������������������:###������)�����������������������������������������������������������#/�����E�.��������������������&���������������������������������� ���������/����������������������

� 8�$�5�"8885�85�"8885��$�85��8885.�$�85�"888���������4�����������������������������������������������D��.��+ ���������� ���������������/���������������:###������)������/����������������������������������������������������������������6��.��������������/���������������������������������������������������������������������������������E��.��������������������������������������������������E��.���+ #������������������������������"###�����)������/����������������������������������E��.���������������������������:###������)���������F������������������������������������������������������������������ ���4��������

� �$5.�����������������������������������������������������"'���������������+�������������?���������D��.���������������+ ������/��������E��.������������/�������������������/���������������������.��������������������

� 8��$�5"8885>?�5"888585"888585"888�����������������������������������������������������������������D��.�����������+ ��������������/����:###������)������/���������6�.����������A%����������������������:###������)����������������������������������������������������������#/�����E��.�������������������&�������������������������������������������/���������������������

� 8�.�$�5"888585"8885�$�85"8885.�$�85"888�����������������������������������������������������������������������D��.���+ ������������������������/���������������:###�����)������/����������������������������������������������������������������6��.���������������/���������������������������������������������������������������������������E��.��������������������������������E��.�����������+ #�����������������������������"###������)������/����������������E��.�����������+ #����������������:###������)���������F�������������������������������������������������������������������� ���4��������

Page 37: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� �$5.�����������������������������������������������������"'���������������+�������������?���������D��.���������������+ ��������������E��.������������/������+����������/��������������������%����������������������

� ",���������������������������������������������!������������������������������������

�78�,�������������������������������������������.��������������������������� ���?���������������.��������������������$��������������/

�������������������������������������������

*����� ������������ ��������������������������������������������������������������������������

(�� ������������������-!,���������/����������������������������������

#units inch/10;move 2(9000), 2(9000), 0(9000), 0(9000);repeat

move 1(9000), 0(9000), 10(1000),-10(9000);until 7;

move 1(9000), 3(9000), 0(9000), 0 (9000);repeat

move -1(9000), 0(9000), 10(1000), -10(9000);until 7;

stop.#start;

��������������������������������������������2!�(���������������������������������������������������������������������������������-;(F���������������2!�(��������������������������������������������������������������

100 OPEN "COM1:9600,N,8,1,RS,CS,DS,CD" AS #1110 PRINT#1, "@07":GOSUB 1000120 PRINT#1, "@0i":GOSUB 1000130 PRINT#1, "0 508,9000, 508, 9000, 0, 9000, 0, 9000": GOSUB 1000140 PRINT#1, "0 254,9000, 0, 9000, 2540, 9000, -2540, 9000": GOSUB 1000150 PRINT#1, "3 5 -1":GOSUB 1000160 PRINT#1, "0 254,9000,762, 9000, 0, 9000, 0, 9000": GOSUB 1000170 PRINT#1, "0 -254,9000, 0, 9000,2540, 1000, -2540, 9000": GOSUB 1000180 PRINT#1, “3 5 -1”:GOSUB 1000190 PRINT#1, “9”:GOSUB 1000200 PRINT#1, “@OS”:GOSUB 1000210 STOP 1000 IF LOC (1) > 1 THEN GOTO 10001010 A$=INPUT$ (1,1):IF A$=”O” THEN RETURN1020 PRINT "Controller Card Error: “;A$1030 STOP

Page 38: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

PROGRAMMINGTHE CONTROLLER

Page 39: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

����������������������������������������������������������������������������������� ������������������������������ ����-����������������� �������������������������������������������������������

Command Modes��������������������������� ��������������������������������������

Immediate Mode

��������������������������������������������������������������� ��!���������������������������� ��.���������� ������������@���>����.�����

@0A400, 9000 �(��������D��.�������'@0A300, 1200, 400, 5000 �(��������D6��.�������'@0A300, 1400, 340, 5500, 20, 90, 900, 100 �(��������D6E������'

����������������������4�������4�������������0�������������������

� (�������������������������������������/�������������������������4��������������������������������������������

� (�����������������������������������������/�������������������������4��������������������������������������������

Program Mode

(��-�����������/�����3����������������������������������� ������������������.������������������������������������!;������������������������/������� ���������������!;������������������������������������������������������� �������������������������������(������������������3���������������� ����4�������� /�������������������������������������������������������������

��"����""���!����������#��9!�������$�&$�"�"���@�:���������$!

���������#������9�������)""�������"���'��,���$���""���!�����#�

9!�����������$�"���'������������""������!�$������!���&�!�������

���%�����9�����:�����"���!������""�����!�C����'

Software Handshaking

!�����������������4������������������������������������������������������4����������� �������� ���������������/�;����������HF7'�������������������������������������������������4����3������������������������

� !����������������������-������������������������������������������������P�����"�'�Q������� ���������� ��������� ����������P�����"#'Q�� ���������������������4����������������������������#�P����� $'�Q������������������������/�����������������������������������

Page 40: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

���������������3������#�������������������������!��((���������������������������������������������������������������������������������������������������������9�����1�����������������������+�(��������������������������.��������������������������������

� 6����������������������4�������������������������������������������������� �������������������

Converting Units For Motion Commands���������������������������������������������/����������������������������������������������������������������������������������������������� ����������-!,�-����������/����������������������������/����� ����������������������������������������������������������������������������������/����������0������������������� ��������������G������������������������������������������������������������ ������������������������

##������ . "�;������� . F����������������������I�����"�;������� ��������������' G���I�����������������

��������������������������������/���I����������������������������������"����������� ��������������

2 ��������������������������"����'����������0��������������������� ���'/������������������������������������������+� '/��������������4�����������

##������ . "�;������� . �+� ���"�;������� ��� "����

C�����������������������/�����;����������������������/��������������������������������

##�������.��+� M �+ #������ M ��+ #������)��� �.�"���� ���������

6������������� ����������������������� ��������������������� ��+ #����������������������������� ������������(����������������������������� ������������������������������������������������������

>��� ��������������/����������������������������������������������� ���������������������������

Unit Screw Pitch (mm.) Steps per unit"���� � +#$#"���� �+ #"���� + �#��"���� �+� ##

"��� � �##"��� "##"��� + $#

Page 41: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Command Descriptions

�����������������������������������������������������������������������(��������������������������������������������������������� ���!�����������������������������������������������/�������0�����������������������������

9���������������.������������������������������

Name of Command

� DefinitionH������3��4�������������������������������������������������������������������������(������������/�-�����������/���������

� FormatH��������� ���.���������������/�������������������� ���������� ����������(���������/������������������������������������������(��������1������������������������������-�������1��������������*����������������������������������������������!�������������� �������������������������������������������������������������������������� ���������������������������������� �����������������������������������������������������������������/��������/�����/�������������������<�������������������������9.���������������������������������������������������

��Explanation!���������.����������������������������������������������������������������������������������������������������

��Example!���.�����������������������������������������������������.�����������������������������������������������������������

�� Possible Error Messages,������������������������������ �������������<���������������������/�����������.���������

� See Also!���������������������������������������������/����� /��������������������������������������������������������������������������������

Page 42: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Absolute Motion

� Definition

������������������� �������������������.��������������������������������������������������� ��������������������������������������������������(�����������-������������

� Format

4���������& ��

7�C0�D�&�C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

��7�C0�D���C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

%� �����& ��

&�C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

����C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

@����������������������������(������������

C0�D����������������������������������������������#�

&� ��� ����������������������������������������4������4�����������������������������������4�������4���������������������������������������&����������������������������������������������������������

C�=D5C�;D5C�E�D5C�E�D ������������������������������������)����������������.����9�����.���������������������� ����������������������������������#�����"####�

C�E�D��������������������E��.��������������������������C�E�D��������������������E��.���������������������

C0=D5C0;D5C0E�D5C0E�D �������� ��������������������������� ����� ��������

������� ��������'����4���������5�������������� ���� �

������������'���� �� ���� ���,�����'��������������

����������*���� ���� �����������������������.

B58885888�� �FB58885888�������

C0E�D���������������������E��.�������������������/����C0E�D���������������������E��.����������������������

Page 43: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� Explanation

�����������������������.���������������������������������������������� �������� ���������������������������������������������������� ������������������������������������E����!�������-�������������'���(������� /� ������������ �������������������������������������������� �����������.�����������

6����������������������������� ��.�/�������� ������������������.�����������(����������/������ ����������������������������.�/���������������� ���������������

���������������������������������������������.��� ������

� Example

78>

78�>

78&�>885�8885�8885�8885�$85�888585�888

78��>885"8885�8885�8885�$85�888585�888

��������������������������������������������������������.���������������������������������������������������������������������������.�����������������������!����������������������������������������������������

�����������������������/�����D��.����������A##���������� ����������������������������������������������###������)������/���������6��.���������###���������� ������������������������������������������������###�����)������������������������������������������������������������������E��.�/��+#����������"###������)��������������������������������������������������������������E��.��������#���������������������������������.�����������/������������������������������/���������������������������������������������������������������������������������1����������������������������������/��������������������������4��������������-������������������������������������������������������.���������������������������������A##/�###/#'�

�������������������������������������.���������� ����������������������������������/������4�������������������������������������������-��������������������������������������������������������D��.�����A##��������������������������������D��.��������� ���/�����D��.��������������������������:###������)���������������/����������������������������������������������������6��.����"###������������6��.��������������������"###���������� ������������������������"���(�������� /�����6��.������������"###��������������������������������������������������###������E�.���������<������������������������������

Page 44: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� Possible Error Messages

� ?������������*F��������3���������������������������������������

��������.���������.��������������� �������������������������������������������������������

� !.�������������

� (�������������������������������������������������

� ���������������������������������������������������������������.��

��������������������������������������������3�����������������������������.��/�������������������������.��������#�������

� (���������������������������������������������#��"#/###�

� See Also

E����!�������-�����

Page 45: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Circular Interpolation

�����$�9��$�����$�����������""���������:�$<!�:��������$%������$�

�'�@�:������!��������7��F������$����$'

� Definition

����������������� �������������������������������������D�����6��.����������������������������������(������������-�������������

� Format

4���������& ��

7�C0�D�;�C/D5CGD5C,D5C=D5C;D5C�=D5C�

;D

%� �����& ��

;� C/D5CGD5C,D5C=D5C;D5C�=D5C�

;D

@ ��6�$��� ,$� ,��� +#22$��� ��� ��� �22���$��2#��.

C0�D ���������������������������������������������#�

; ���������������� ���������������������������������������

/ ,��������������������������������������'���?����������������������������������������������.���������������������

G ����������������������)������������������������������������������#������"####�

=5; �������������������������������D�����6��.����������������������������������

�=5�

;����������������������3������������������������������������������������������������������������

���������>�������������4��������� >������4�����������������R������� " � � " � � 8��������;

D�" �" " " " " �" �"

8��������;6

" �" �" " �" " " �"

, ������������������������������������������������������������4�����������������������������������������������������������������������������������������������������������D/�6'/������������;'/��������������������������������������������� �����������������������

;D/;

6��SD�D�;

D'@6�6�;

6'�;�T

Page 46: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� Explanation

2������ �������������������������������/� �������������������������������������������������������9���(;�G,!;�7(;9��(*F���������(�� ����������������������/��������������������4�������������������������4�����������������4���������/���������������������

���������������������������/� ������������������������������������������������������������������������������������������������������������������6����������������������� ���������������������������/���������������������������������?������/����������������������������������������������������������������������������2 ����������������������������������������� ������/�������������������������������/������ �����������/������������������������������������������0������������� �����������������������������������

� Example

78�

78�.�

78;5"$""5�8885���5>�?85�">�5.�5�

��������������������.����������������������.����� ��.������������������������������������������������������������������������������������������������������4�����������.������������������������������������������������������������������������

���������������������������������������4���������/���������� ����������������������������������

�D/6'��������������������������������/����������� ��;�������"'/�;������

"''

���������/��D/6'�M��A%�#S����"+'T/A%�#S���"+'T'�M�A�%#/":A�'�

������������������������������������������������� ��������������������

�������������� ����������������������������������2'�������������������������������������������������������������������������������������'/��������������������������������������������������3��������������������������� �/�������� ���������������������������'

���������������������2';M�B

��M%$U

�"M"+U

�D/6'

Page 47: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

(���������������������������������/����������D������������������� �

7D�M�;�������"'���;�������

�'

�������������6�������������������� �76�M�;�������

�'���;�������

"'

���������������������������������������������� �������������������������������������

2�M�7D�@�76

�����3���� �

7D�M�;�������"'���;�������

�' 76�M�;������

�'���;������

"'

7D�M�A%�#�S�����"+'��������%$'T 76�M�A%�#�S����%$'�������"+'T7D�M� +#% 76�M�+#:�

�����F���������������M�7D�@�76�M� +#%�@�+#:��M�:+::

������.������/�"###/�����������������������������������������/"###������)������������������������� �� ����������

������.������/��" /���������������������������������������������������������������������������������������;

./;

�����������

�������������������������

9������9'�M�;./;

�SD�D�;

.'�@�6�6�;

'�;�

VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV

MA%�#����A�%#�.�A�%"���":A��.�":A"�VVVVVVVVVVVVVVVVVVVVVVVVVVVVV

M��"

������.���������������������������������������������������������������������������������������������'�������������������5���������!���������������������������������������������.����/�D/6'�M��A�%#/":A�'

>�� /������������"�����"�����������������;.�����;

�������������

������������������������������4���������������������������3��������

�See Also

���������7������

Page 48: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Clear Battery Backed RAM

� Definition

��������������������������� ������ ��������������������� ����4���;!1������������������� �����������(�������������

� Format

7C0�D�6

C0�D����������������������������������������������#�

� Explanation

2����� ����4���;!1��������������������������������������C��������� ���4���;!1/��������������������������������������������������������������������������������

,������������������������������� ��������������� �������������� ���4���;!1/���������������������������������������������������������������������

� Example

786

78>

78��

8��8885�8885�8885�8885�$85$885.�$85$88

"

7�

?������������������������������������������������������I������� /�����������������)����������0����������������������� ����������������������� ���4���;!1���?��������������2����� �2��4���1���� ������������������������ ������������������?����/������������������������������������������������� /��������������������/����������.��������������/�����������������������������������������������������������������(������������������������������/�������������������������������������� ����4���;!1�����������������2������2��4���;!1����������������

Page 49: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

End Program

� Definition

���������������������������������������������������������������������������������������������/��������������������������������������(���������������*����� /������������������� �����������-����������

� Format

"

� Explanation

������������������������������������������������-�������������(���������������������������������-��������������������������������(���������������*������(������������/� ���������������.���������������������������������<������������

(���������������������������������������������������/���������������������������� ����������������(������������������������������ ��������������������

� Example

78>

78��

8��>885�8885�8885�8885�$85�8885.�$85�888

"

7�

��������������������������������������������������������.������������������������������������������������������������-��������������?����/������������������������������������������ ��.������/������������������ ���,��������������������9���(�������������������������������������������������������������������������������������������-����������/����������������������4�����(�����������������������������������/���������.��������������/����������(�������������� ���.�

� See Also

9�����-�������1���

Page 50: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

Enter Program Mode

��Definition

�����������������������������������������-���������������������������������������������������.�����������������������������������������*����� /������������������� �����������(������������

� Format

7C0�D�

C0�D����������������������������������������������#�

� Explanation

��������������������������������������������(��������������(���������������������������������(���������������������������������-��������������!�����������������JK��������/������������������������������������������������������������-���������������������������������������������� ����������.�������������� ���������������������������������9���-���������������

������������������������������ �����J����� �!.��K���������

����9�����-�������1��������������������������� �����������������������(���������������������������������������������������������/���������������������������������-��������������������� �

� Example

78>

78��

8��$885�8885�8�85�8885�"?>5�8885.�"?>5�888

"

��������������������������������������������������������.�������������������,������������������������9�����-�������1�����������������������������������������������-������������� ���.������������������������ ���?����/������������������������������������������� �.������/������������������� ���,������������������-�������������������9���-���������������

�� Possible Error Messages

� !.�������������$ � ���.������

� See Also9���-������

Page 51: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Home Motors

� Definition

�����������������������.�����������������������������������������������������������������(������������-�������������

��Format

4���������� ��

7��C0�D���C-'��D �� 7�C0�D���C-'��D

%� ������ ��

>�C-'��D

7����������������������������(������������

C0�D����������������������������������������������#�

������ ����������������������������������������4������4�����������������������������������4�������4���������������������������������������������������������������������������������������������������������������

C-'��D�!.����������9�����.������������ ����������������D�M�"/�6�M��/�E�M� �(������������������.����������������/������.������������������� �����������

�'�����������

��Explanation

�����������������������.��������������������� �������������������������.�����������������������������������������������/�����������������������������������������

C�������������������.�����������/�����E��.��������������/����������������������������4�����������6��.��������������/��������� �����D��.����(�� �����������.���������������������������/� ����������������������������������������������

(��(������������/�������������������������������������������������� ��������������������

(���������������������������������.�����������������������������������/����������������������������� ��������������������������������������4������������������������*����*�%����� ����������������

������� ��'����� �������������

Page 52: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� Example

78>

78�>

��������������������������������������������������������.�������������������������������������������������������������������������������������A�����������������������.��������������������"@�@ '�����������E��.�����������������/��������� �����6��.�/�������� �����D��.����������������;���������/������������������������������������������������������������������������������������������������

78>

78�

>�$

"

78�

78��

?���������.���������������������������������������(�����������-�����������������������������������������.����� ����������������������������������-�������������������������������������������-�����������������+������������������E�����D��.��������������������"@ '/������������6��.�����������������������������������������6��.�����������������D��.���!��������������������������������������������������6��.�/�������������������/����������������� ���������������������D�

,������������������(����������������������.�������������������+������������E��.�������������/��������� �����D��.��

�����������������������������������(��������������������������������������/�������������������������-��������������������������������������.�����������������6��.�����������������/������������� �������

� Possible Error Messages

�����.��������������/�����������.������.��������3������������

�����

� !.�������������

� See Also

����?��������������� �!.��

Page 53: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Identify Axes Positions

� Definition

������������������ �����������������������������.������������������� �����������(������������

� Format

@(GN)P

(GN)����������������������������������������������#�

�Explanation

������������������ /�������������������������������������������������������������.����������������������������������������������������������������'�

��������������������� �������������������������������������������������������������������.������������������5�����������������������+���������.�������������.��������������'�

�Example

78>

78��

>�>

8�?5�8885B�"�5�888585�8885.�5�888

"

78�

78%

��������������������������������������������������������.�������������������,����������������������������������,�������������������������������������������������������.�����?��������������������������������������������.��������������"%/$":�/��'�����������������������������������,��������������������-��������������������.������������������

,�����������������������(�������!.��5�-����������������C���������������������������������.���������������/�������������������������������������������������������������������

8888�888�88833333,

�����������������������������������D��.����####"#?����"%�������������������������/�����6��.����##�###?����$#:%��������������������������/��������E��.����>>>>>9���������������������������������

Page 54: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Impulse Operation

��Definition

���������������������������������������������������������������)��������()*'����������������"�'��(������()*������������������/����������������������������������������������������������������� ����4����-�����������

� Format

4 (code)

(code)����� ����������������"�����%����������

1����������*F2����������*>>3���(�����������+����4����������������5�������������������������������������4������������;��� ��������+�����6��������������������������4�������

��Explanation

����(������*��������������������������������������������������������������������������������������������������� ���������������������������������������������������������������������

������"�������������������������������������������������������������������������������������������������������������������������������������������������������������F��������������������������/�������������������������������������������������������������������������������

�������������������������������������������������������������()*����")�����������

����� �����������������������������������������������������������������������������������������������������������������������()*�

�����+���������������������������������������������������������������������������������/����������������������������������������������4���������������������������������(�������4�����������������/�����������������������������������������+���������

�����%������������������������/���������������������������������������4�����������������������������������������������������������������

F�������������������������������������������������!;������/������������������*F/����������������������0������������� ����%����������������

Page 55: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� Example

8��$885�8885�$885�888585�88585�88

���

8�.�8885�8885�$885�8885�>$5�885.�>$5�88

���

8�$885�8885�$885�888585�88585�88

��$

>�>

������������������������������������������������������������������ �����F��������������������������������-����������������������������� �����.�������������������!;������������������������-�����������������������������������������������'

�����������������������.���������������������������,����������������������������������������"'����������������������������������������������������������������'���������.���������������������.��/�������������������������4���

������.����������������������������������������������������������'��������������������������������.��������������������������������������������4���

,����.�����������������������������������������������������������������������������+�������������������/���������������������.���������������4�������������������������������������������������F����������������������������������������������������������������������������������������������������������/���*����������4����������������������/�.�����������������������.��������������.����������������(�������4��������������������������/������������������������������������+��������

��Possible Error Messages

� � ���.������

! *�����������

� (��������������

� See Also

1����G���(�����

Page 56: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Incremental Motion

� Definition

������������������������������.����������������� ���������������������'�������������������������������������������������������������������������������������(������������-�������������

� Format

4���������� ��

7�C0�D�-�C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

��7�C0�D���C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

%� ������ ��

8�C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

7����������������������������(������������

C0�D����������������������������������������������#�

-����� ����������������������������������������4������4������������/����������������������4�������4���������������������������������������-�����������������������������������������������������������

C0=D5�C0;D5�C0E�D5�C0E�D ��������������������������������������������.���������������������������� ������������.�����������������������������9�����.���������������������� ��������������������������������#����W$/###/###������

C0E�D ������������������E��.�����������������������������

C0E�D ������������������E��.���������������������������������

C�=D5C�;D5C�E�D5C�E�D �������������������������������������)����������������.���9�����.���������������������� �����������������������������������#�����"####�

C�E�D �������������������E��.���������������������������C�E�D�������������������E��.���������������������

��Explanation

�����������������������.������������������������������������������������ �������� �������������������������������������������.�������������������������������

Page 57: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

-�����������������������������������������.����� ���������������F������������������������������������������.�������������������

F���� /��������������������D�6��.�����������������������������������������������������������E"����������������������������/���������� �� ��������������������E����������

6����������������������������� ��.�/�������� ������������������.�����������(����������������/���������#�����������.�5������������������������������ �������

(��-�����������/�����������������������4������4�����������������������������������������(��(��������������������������������4������������������������������������������������������!)��

(����������������������.����������������������/���������E��.��������������������������������������#������#���������� �

���������������������������������������������.���������

+, ),2��.0/�2, �7(/7>/4� ,��//�)�� (/*�.0/�1) ()2� (/

�(*�)7.-�0.23/�,�� (/�+.7()2/'��+.>/��60/� ,�7.0/�6--*

7(/7>� (/�4)� .27/�*,6�)2� 067 � (/�.=/�� ,�+,8/��)27/

+, ),2��/*,24� (/�.=/�G�0.23/�7.2�7.6�/�4.+.3/� ,� (/

+.7()2/0*'

� Example

78>

78�

8��$885�8885�$885�8885�>$5�8885.�>$5�888

"

78�

78-.�>885�888585�8885�$85�8885.�$85�888

78�.�>885�888585�8885�$85�8885.�$85�888

���������������������������������.������������������������-����������(��������������

���������������������������������������.��������������������������������������������������������(�����������-������������

������������������������������������������������-����������������������������D��.����������"+##��������������������������������� ��������������/����������������###������)������������6��.������������������������� �"###��������������������������������� �����������������"###������)������������E��.���������������A+�������������������"###�����)������/�������� �������A+���������������������������������F�������������������������� ������&������������������������ ��������.�����������������������������!����4���������������������� ������

Page 58: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

,�����������������-�����������/��������+/���(������������/�������������������.������������������������� ��?����������������������������������������������������������D�����6��.��������������/������������������/��������������E��.��������������������/

,����.������������������������(������������������D��.���������A##��������������������������������������������������������������###�����)������������6��.������������������#�������������������������������������������������6��������������������������������������������������������������������E��.�/��+#����������"###������)����������������������������������������������������E��.�/��+#��������������������������������������������-�����������������������������������/�������������������������4���������������-������������������

,��������������������.����.��� ����������.��?������/������������������a��������������/������4�������������������������������������������-������������������������

� Possible Error Messages

� ?������������*F��������3��������������������������������

���������������.���������.��������������� �������������������������������������������������������

� !.��������������

� (�������������������������� ���.�������

! *����������� ������

� ���������������������������������������������������������������.��

��������������������������������������������3�����������������������������.��/�������������������������.��������#�������

� (���������������������������������������������#��"#/###

� See Also

!�������1����

Page 59: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

Loop/Branch

� Definition

��������������������������������������������������������������������������������'����������.������������������������������������'�������������������� �����������-������������

� Format

��C�D5�C�D

C�D F���������������������3���������������!� ����������������"�������A%A�� ����������(��#�������/����������������������������������

C�D C�����������������/����������������������������������4�������������������������������������������������������������������������"�������A%A��C��������������������/������������������������������� ������������������/�������������������������������������������������������������A%A�������A%A�

� Explanation

C�������������������FX#'/���������������������.����������4������������������������4���������������9.�����������������������������������/����������������������������������������������.������������C�����.����������������������/���������������������.�����������������������4���������������������������F���(��F����������/��.������������������������4�����������������.���������C�������������������������F�����/�.�����������������������������������������������.����������

� >��������������X#'���������������

� 6���������������������������������������'/��������������������������������.������������� �

� !�������������������������������������������������������3���#'�

C��������������������������������/��FM#'/������������������� ������.��������������������������������� ���������������������9.������������������������������4������������������������������������

� >������������������X#'��������������������������������������N#'�

� 7����������������������������������������������G��������������������������������������/�������������������������������������� �

Page 60: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

����������������������������������������������������(����C�������� �������������������������������������������/�������������������������.�����������������������������������������������������������

� Examples

8���885$88

>��

�5$5.�

���������������������������������/���4��������������������������������������������/�����������D��.��"�##����������+##������)��������������.��������������D��.��

���������������������)����������������(����������� ����������������������������������������������������#�����������������'��������������������������������������/�������������4������������/�������/������������������������������������������/��+'���������������������������������������������������������������?�����������.�������������������/�����������������������������������'������������������������������������������.����������4�+���������������������D��.������������"�##���������������������/�����������%����������������������������������������

8��885�885$8885�88

>��

�5�5.�

�585.�

���������������������������D��.�� ##�����������##������)���������������6�.��+###���������������������������������������������������������6��.��

������������������������������(��������������������������������������'������������������ ��������?����������.������������������������������/������������������!��������/��.���������������������������������������.�����

������������������������������������/���������������������������������#���?����������������������� �������.�������������������������� /�������/���������������?���������������.�������������������������C�����.�����������������4����������/�������������������.�������������������������?����������.����������������������������������9.���������������������������������������������������������������4���������������������������������������� /��������� ����������������������/�����������������������������*-������������������������

Page 61: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� Possible Error Messages

� � ���.������

! *�����������

� (��������������

" !�������������������������������������������.�������

Page 62: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Move Until Impulse

� Definition

������������������������������.���<�����������������������������������/������������������������������������������������ ������������������������������� ���-������������

� Format

?�C0=D5�C�=D5�C0;D5�C�;D5�C0E�D5�C�E�D5�C0E�D5�C�E�D

C�=D5C�;D5C�E�D5C�E�D �������������������������������������)����������������.����9�����.���������������������� ������������������������������������#�����"####�

C�E�D �������������������E��.�����������������������C�E�D �������������������E��.���������������������

C0=D5�C0;D5�C0E�D5�C0E�D ��������������������������������������������.���������������������������� ������������.�����������������������������9�����.���������������������� ��������������������������������#����@$/###/###������

C0E�D ������������������E��.����������������������������� C0E�D ������������������E��.���������������������������

��Explanation

�����������������������.������������������������������������������(����������1���������������?������/������������������������/���������������������������������������� ��������������������������������������9.�������������������������������.����������

!����������4����������������������.����������������������

��������������������������������������������.���������

� Example

78>

78�

?��$885�8885�$885�8885�>$5�8885.�>$5�888

?��>885�888585�8885�$85�8885.�$85�888

"

78�

Page 63: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

������������������������������������/������������������������.��������������������������������������������������������(�����������-�����������

���������������������1����G���(��������������������������������D�.����������"+##��������������������������������� ���������������/���������������###������)�������������6��.����������������"###�������������������������������� ������������������"###������)�������������E��.��������������A+�������������������"###������)������/����������������A+����������������������������������������������������������� ���������������.���������?������/������������������������������������������ �����/������������'���������� ����������.����������������������.������������(���� �����/������������4�����������������������������������������������������.�������

,���������������������1����G���(��������������������D��.���������A##��������������������������������������������������������������###�����)������������6��.������������������#�������������������������������������������������6���������������������������������������������������������������������E��.�/��+#����������"###������)�����������������������������������������������������E��.�����+#�������������������������*��������/��������������������������� ����������������.������������������������������������� ����������������(�������������������/��������������/������.��������������������+���!���������4������������������������������������������������������.�������

,����������������.����������(������������/���������.�������������������.������������������

� Possible Error Messages

� ?������������*F��������3���������������������������������������

��������.���������.��������������� �������������������������������������������������������

� !.��������������

� (�������������������������� ���.�������

! *����������� ������

� ���������������������������������������������������������������.��

��������������������������������������������3�����������������������������.��/�������������������������.��������#�������

� (���������������������������������������������#��"#/###�

� See Also

(����������1����

Page 64: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Peek

� Definition

����-��4���������������������������.���������;!1������)����'/�������������9-;*1����������������������

� Format

7A0�H�A-���H ����9����7A0�H�A-���H ����;!1

A0�H M����7�����������/������������M�#A-���H M����!���������������#�����%++�%

� Example

78��8�B

78��>��

� Explanation

���������������������� �@0��c������������������3����������������������������9������������������������ '��2048������������������������3������������������������������������������������������4�/��������� ���������/������������������������������������3���������� ���/��.��������������.��������(������������������;!1�������������/�����b�����������c�������������������

� Note

������������������������������������(����)*������9.����������������������������������)���������������������������������

����� ����������������������������������������������

Page 65: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Poke

� Definition

����-�4�����������������������������������;!1���������������������������������������������������

� Format

7A0�H/A-���H5A(���H

A0�H M�������������A-���H M�����������������#�����%++�+A(���H M��������������#������++

� Explanation

���������������������� �78��/���������������������������������������������� ���������������������������������������������������������B��������������������������� ���������������������������.�������������������������������4��

� Example

78/������5��B

� Limitation

�������������������������4�������������������������������������������������������������� �������������������

� Note

������������������������������9-;*1��������������&��������������������� �����������������������������������������������������������������������������������/����������������������������������������� ��������������������������������������������������������������������������A%A/����������������������������������� �����9-;*1����������������������

Page 66: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Read Input Port

� Definition

��������������������������������������������������������������������������������������������� �����������������������

� Format

?$$��5C�D5CGD5C3D

?$$����������������������������

C�D ������������������� �������������������"�$���������������������������������������#����������������������������������.������

CGD ������������#����"����������������.������������������������#������++����������������������������.������

C3D �����������������������������������������������������������������

��Explanation

C�����.���������������������/�������������������������������������������������������������������������������������������������������'���.�������(��������������3������������������������ �V/�������.���������������������������������� ��������������(�����/�������.������������������������������.�����

(�� ���������� �������������������4��/� �������������� �����������������������������/��������������G/��������8�������������������������������������������������������

(�� ������������������������4��������������������������'/� ���������������0��������������������� �������������G����������������������������������������� ��������������������������������������������.����������������9��*G�-G��������������������������� )�����������������������'�?������ �����������������/� ���������������������������4��������� ������������������������������������

��Example

�?$$��5��585�

8��$5��888

��8�.�

>��

"

Page 67: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

���������������������������������������������������������������(������� ��������������� ���������������������������%++�"����3������#'/�������.���������������������������������������������������.������������� ����������������.�/����������������+������������������������(������� ���������������� �����������������������%++�"����3������"'/�������.������������������������"�������������������������.��"+������/������������������������.����������4���������������������������������?������������������4��������4������������ ����������������.��"+���������������������� �������������*��������� �������/������.����������������������������������

�?$$��585"5�

���$5�888

��8�.�

>��

"

����������������������������������������������������������������/������������������4����������������������!�����������������/��.����������������������������������"���������� ���������������������� ��������������������������3����������������������� �����:�������������� ��������:���####"##"/���������������������������������������������������M"'�������������������������M#'���(����������������/��.����������������������� ����������������.�/����������������+������������������������(���� ����������������������������������)�������/�������.�������������������������"������������������������.��"+�����/���������������������������.������������"�����������������������4��������4�������������������������������.�������� �������"����� ���������

� Possible Errors

� � ���.������

! ����� ���

� ��������������

� See Also

����*������

Page 68: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Select Interpolation Axes

��Definition

��������������������������������.��������������������������������������������������������������������������������������������������������������������������(����������������-������������

� Format

4���������� ��

7��C0�D���C�D

%� ������ ��

�C�D

@ ���������������������������(������������

C0�D ���������������������������������������������#�

C�D ������������������.����������������������������/����������0��������������������D�6��.��1��������������������D�E��.��2��������������������6�E��.��

� Explanation

>���������������������������������������������/�����������������7����������������������������������������������������������.�������������������� �������������.��������������������������������/�������������������������������������������������������������

�������������������������������������.�����������������������������������������������.������������� ��������������3��������������������������������������

2 �������/�����D�����6��.�������������������������������/���������E��.���3�����������������������������������������

�������������������������������������������������������������������������������������/�������������������������.���

����������.������������������������������������ ������� ����������.���

����������������������������/�����/�������/��������/���������������

Page 69: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

� Example

78>

78�8

78-��>885�8885�8885�8885�$85�8885.�$85�888

��������������������������������������������������������.�����������������

����������������������������������������.����������#�����������������������/��������������D�����6��.�������������������������E��.�����������������������������������3�����������������������

�����������������������������������/�����D��.����������A##����������###������)����������������6��.���������"###�����������###������)�������������������.��������������/������������������������������������������������������������������E��.���������������������������'��+#���������"###������)������/����������������������������'��+#����������"###�����)������/�������������D6�������

78>

78��

78-��>885�8885�8885�8885�$85�8885.�$85�888

�������������������������������������������������������������.�����������������

����������������������������������������.���������������������������������������/��������������6�����E��.�������������������������D��.�����������������������������������3�����������������������

�����������������������������������/�����6��.����������A##����������###������)���������������E��.���������"###�����������###������)������������������.��������������/������������������������������������������������������������������D��.�����������������������+#����������"###�����)������/��������������������������+#����������"###������)������/������������6E�������

� See Also

�7�(�����������*F)*>>

Page 70: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

Send Synchronization Character

� Definition

����������������������������������� ������0������������������.����������/������������������������������������-���C������������� ������0��������������������������/�������������� ������0���������������������������� ������������������������������������

� Format

��C�#D

C�#D � ������0�������������!��((�����'&��� �����������������"�+��.�����%

� Explanation

����������������������������������������������������������������������������������������������-������������� ������0����������������4������<���������������C�������� ������0����������������������� ������0�����������������������������������������������������������!��((��������3��������������������������������������������� ���������������������������������������������������������������

���������������������������������������������������"%�����"A������������������������� ������0�������������

!��������������!��((�����������������������+�

� Example

1 84

C������������������������/���������������������� ������0�����������������!��((�����������$ '�������������������!������������������������������/�����������������������������������������������������C���������/��������������������������������

� Possible Errors

� ����� ������0�����������������������N��/����X"�+/

�����M% '

! ����� ���

� See Also

C�������� ������0��������������

Page 71: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Set Circle Direction

� Definition

��������������������������������������������������������������������������������������������������(������������-�������1�����

�����$�9��$�����$�����������""���������:�$<!�:��������7��F�

����$����$���������!��������$%������$���'�

� Format

4���������� ��

7�C0�D���C(D

%� ������ ��

�C(D

@ ���������������������������(������������

C0�D ���������������������������������������������#�

� ���������������� ������������������������������������������

( ���������������������������������������4����������������4�����������������-1���������������4��������������0��������4������������

� Explanation

2������ ����������������� �� ������������������/� �������������������������������������������������4�����������������4���'������������������������������������

*�����������������������������������/��������������������������������������������������������������������������7��������������������/���������������������

� Example

78�

78�.�

78;5"$""5�8885���5>�?85�">�5.�5�

78�8

Page 72: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

����������������������������/�����(������������/�������������������������������������������+�������������������������������������������,����������������������������7���������������������������������������������"/����������������������������������������/����������������������������������4�������������>���������������������������/����������/��������������������7����������������������������/���#������������/�����������������������������������4����

� See Also

�������(����������

Page 73: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Set Homing Speed

� Definition

�������������������������������������������.������������������� ��������������������������� ����������(��������1����

� Format

7�C0�D���C�=D5�C�;D5�C�ED

7����������������������������������������

C0�D���������������������������������������������#�

�������������������� ���������������������������������������

C�=D5�C�;D5�C�ED �����������������������������)��������������������������.��������������������������������#�����"#/###�

� Explanation

��������������������������������������������������###������)����������������������������������� ������������������������������������������������������������������� ����������������������� ����4�������� �

6�����������������������������������/��/������ �������������������.��������������������� ��������������.�����D/�6/�E������&������/�����D��.���� �����������������������/�������������/�����6��.����������������.�����/���������E��.�������������������������C�����.��������������������������������������.����������������������������� �!.����������/�����������������������������������������������������������.����������

.�-.03/�)2467 )8/���)>/�)���0,467/4�1(/2� (/�+, ,0�)�

� ,��/4�.�06� -*�.��) �() �� (/�-)+) ��1) 7('� (/�)2467 )8/

��)>/�7.2��/�-.03/�/2,63(� ,�,8/0-,.4� (/�� /��/0�40)8/0

7.04��.24�4.+.3/� (/�7,2 0,--/0'��,0� ()��0/.�,2@�1/

0/7,++/24� (. � (/�(,+/���//4��/�>/� � ,�624/0�����

� /��B�/7'

��Examples

78>

78���8885�8885�$8

Page 74: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

��������������������������������������.����������������������������������������������������/���������?������������������������������������###�����)������������D��.�/� ###������)������������6��.�/������+#������)�����������E��.����!����������������������������������������������

78$

78���8885�$8

������������������������������� �����D�����E��.�����������������������������������������������������/���������?���������������������������������������"###������)������������D��.�������������6��.���������������/����������������/��+#������)����/������������������E��.��������6�������������������������������###������)������!����������������������������������������

� Possible Error Messages

� !.�������������

� (�������������������������� ���.�������

� ���������������������������������������������������������������.��

����������������������

� (���������������������������������������������#��"#/###�

� See Also

?����1���������� �!.��

Page 75: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Set Outputs

��Definition

����������������� ���������������������������������������(������ ���������-������������

� Format

��C�������D5C�D5CGD

C�������D ������������������������������������������ ������������<���������������� ?$$�"��*������H�����"'����?$$�8��*������H������'�

C�D ������������������� �������������������"�$�������������������������������/����#����������������������������<���������������������

CGD ������������#����"�����������������<������������������������#������++�����������������������������<������

� Explanation

�������������������������������������������������������������������������������������

������������������������������������������"����$'�����������������������������

(�� ������������<�����������������/������������������������������������������������������������������/�����������������������������������������������>�������G����������/�������������8��� �����������������������������������'������������ ��������������������������������'�

(�� ������������<�������������������������������/���������������������������������������������������� �������������������������������8�������������������������������G�������������������������������������������� ��3�������������������������������������������������������������'��������������

��Example

��?$$�"5�58

��?$$�85?5�

��?$$�"585�8$

��?$$�8585$8

Page 76: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

��������������������������������������<���������

������������������������������������������������������������ /��*������H�����"����������%++�:'�����������FM�'���������������������#���������������������

������������������������������������������������������?���/���*�����H����������������%++�#'/��������%��FM%'���������������������"/��������������������

,���������������������������������������<��������?����*������H�����"���������<���������������%++�:'���������������4������������������������������<�������������#����������������������G����������������<������������������#+���������������������� ������������������� ���������������������������������������������������������������������������������������

*����� 7������������ 2��� �7�� 7�����8���$ �� " "�$A �� " % % ��� # #+ ��� # # �� " $� �� " � ��� # #" �� "VVVVVVVVVV "VVVVVVVVVVVV

����� ""##""#" �#+

����������������#+�������������������������������������������������?�����������������������������"/�/ /A/�����$/�����������������������/+/�����%��*������H�����"�

,��� ���������������������������������������<��������?����*������H���������������<���������������%++�#'��������������������4������������������������������<�������������#��������������N�������V����������������<����������������������������������������� ������������������� ���������������������������������������������������������������������������������������

*����� 7������������ 2��� �7�� 7�����8���$ ��� # #A ��� # #% �� " ��+ �� " "% ��� # #� ��� # #� �� " �" ��� #VVVVVVVVVV #VVVVVVVVVVVV

����� ##""##"# +#

Page 77: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

���������������+#�������������������������������������������������?������������������������������"/�/ /A/�����$/����������������������/+/�����%��*������H�������

��Possible Error Messages

� � ���.������

Page 78: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Software Reset

��Definition

������������������������������������������� ������(�����������������������;9�9��������������������������!�����������������������/����������������������������������������������������������������������������!;����������

� Format

!��((������������+ ����.��������������>9�'

� Explanation

�����������/��������(������������/����������������������������������������;����������������������������

(����������������4����������������������������������/��������������������/������������������������ �������

� Example

!��((������������+

����;������������/�������������������� ��������������������/�������������������������� �������.�������� ��������������

��See Also

������-�����������9.������

Page 79: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

Specify Axes

��Definition

������������������������.��/���������������.�������������������������������������������������� ����������(��������1����

� Format

7�C0�D�C-D

7����������������������������(������������

C0�D���������������������������������������������#�

C-D�����������������������������������.����������������������9�����.���4������ ����������������D�M"/�6M�/�EM ���(�� �������������������������������.��/������.���������-����������� �����������������'��

�������������D��.���������� ������������������������������������������������������4������������D��.��������������

?����/����������.����������������������" .��.���� � .����� ��.����� + .�����0��.����� A ���������.��

(���������������������������#��������.������������� ��.��������������������������. ����0��.�������������������� �����%���� �����0��.���������������������������.!XA������������/�������������������������.��

��Explanation

�������������������������������������������������� ����������������������������������������� �!.��������������0����������������������������������������.��/�������������� ���������������������������������������.���

� Examples

78>

��������������������������������������.��������������������������������������������������A������������������������.����AM�"��D��.�'�@���6��.�'@� ��E��.�'�

Page 80: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

@03

(������������� �����D�����6��.������������������/��������M�"��D��.�'�@���6��.�'���!� ��������������������������������E��.�������������������������������

� Possible Error Messages

(���������������.��

Page 81: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Start Execution

��Definition

�������������������������������������������������������������������������� ������������������������������������ ����������(�������1����

��Format

7�C0�D�� �� 7C0�D��

7����������������������������(������������

C0�D���������������������������������������������#�

�����������������������������������������������4������4������������/����������������������4�������4�������������������������������������������������������������������������������������������������������

��Explanation

?���������� ����������(������������/���������������������������������.�������������������������� �������������-��������������7����������������������������������� ������/������������������������4�����4�������������������.�����������������.���������������������������� �

F��������� �������������.�������������������������� �� ����������!;���������������������������������������/��������/��� ������������������������������������;�����������������������

� Example

78>

78�

>�>

8��$885�8885�$885�8885�>$5�8885.�>$5�888

"

78�

��������������������������������������.��������������������������������������������������������������������������������������������

,����������������������������������-�������������,���������������������.��������������/������������������������.������������������������������������������������.�������������� /�������������������� �����������������������������������������������������������������,�����������-��������������������������(�������������

Page 82: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

,����.���������������������������������������������������/�����������������������4������4�������������������� ������������������������������������������������������'�������.���������?���������������/������.�����������������������������������������������

Page 83: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Stop Execution

� Definition

���������������������������������������������������������������������������� ��.������������������������ ���������(��������1����

� Format

!��((������������++����.��������������>>�'

� Explanation

�����������/��������(������������/������������������������������ ����������� ����������������H�����������������������������������������*-��������������������������������� ���������������������������;�����������������������

(����������������4����������������������������������/������������������������������������������������������������������������������������� ���������������!;�������������������������9.���������������

� Example

!��((��������������++

���������9.��������������/�������������������� �������������������/��������������������������� �������.�������� �������������

� Notes

���������9.��������������������������.������������������������������(�������������������������������������/����������9.�������������������������������������������/���������������������������������������������

� See Also

������-���������������;����

Page 84: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Time Delay

� Definition

����������������������������������������������������������������(����� ����������-�������1����

� Format

$�C*���D

$������������������ ��������

C*���D��� ����������������#�������A%A�������������������������������������������������������9���������3�����"�����

� Explanation

���������������������������������������������������������������.�������������.������������������������������ �������������4���<�����������������������������������������������������������4���������

� Example

8��8885�8885�$885�8885�885.�88

$��88

8�.�8885�8885.>$85�8885�8858

��������������������������������������.������������ ��������.�����������������7�� ������������������������ �����#�����������"�.�##'��(���������/��������������������������������������������������������������������������������4�����������!������#���������������.���������������� ����.������/�����������������.����������������� �����������������

2, /� (. �) �)��2, �0/7,++/24/4� (. �*,6�6�/�4/-.*�� ,

7(.23/�+. /0).-��/7.6�/�)2?60*�+.*�0/�6- �)�� (/�4/-.*

�)2)�(/��.24�+.7()2)23�0/�6+/���/�,0/� (/�7(.23/�)�

+.4/'

� Possible Error Messages

� � ���.������

� �������������

Page 85: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Trace

� Definition

������������������������������������������������������� ���!���������������������������.�����������������������/�����������������������/���������������������������/��������

��Format

7A0�H�

7����������������������������������������0�����������������������������������������������#�

� Explanation

���������������������������������������������/����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������;������������������������������������������������/����/�����������/��������������������������

��������������������������������������������������!'�������������������������������������'�C������������(�������"�A�������/����� m-�����������������������������.������(����������M�J���������������4K�����������*����������.�����������������!'�

���������������������������������������������������������������������

#"�� ���####"����#�#####"��>9$A��������������>>>>#"���>9#"!�������������2�����������������7����������9������������������������>���������H

�!' 1���� ����������������������������������������������������������� ����������������������

�2' ����������������������������������������������������F������������' F��������������������������������������������.��������(���

�.������������.������������������������������!��((���������������������(�������������.����/����������������������J#KMJ��������������K�

�7' D��.������������������������(�������������.�������������� �����.��������������������������������������� ������

�9' 8�����������������.��.�������������������������/�������������:�"%##)�?(� ��O��+%�,*� ��'���������������

�>' �������������������������7'/���������E���H' ��������������������E��

Page 86: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

>��������������������������������������������������������������������������������������/���������� ������

� Limitation

� ����

>���� ������0�����������/�����������������������������������������������/��������� ������ ������0���������JN��������XK/�JN�!2XK���JN,������XK����������������������������������������

� ����

���������������������������/� ��������������������������������������/���/��������������������3���������������/�������79,���?;S"�AT'�

� ����

7�������������������������/��������������������������������������������������������� ����������������������������������������/����������������������

� ����

���������������������������������������4��������������������������.���������/����������

.������������������@����%�� ��

. ����������������@���"#�� ��

.0����������������@���"+�� ��

. 0���������������@���#�� ��

Page 87: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Wait For Synchronization Character

� Definition

-������.������������ ������0�������������������������������������������� �����������-������������

� Format

��C�#D�C���D

C�#�D� ������0�������������!��((�����'&��� �����������������"�+��.�����%

C���D�*�����/��� �������������������������A%A�������A%A�

� Explanation

����������������������������������� ������0������������������.�����������/�����������������������/�������������-���C��������C������� ������0��������������������������/��.����������������������������������������� ������������������������������������

� (������!��((����������������������������������������3���������� ������0����������SC/��.�����������������������.�����������������������

���(������!��((����������������������������������������3���������� ������0����������SC�@"/�������.�������������������������������������������������������������������������� ���������� ������������

��������������������������4�������������������������������.����������������������������� ������������������ ��� ������������ �����������

�� ����������� ��������'��������������C����� ����������� �����

��������������� ���D�

*���!����� ������� ��I��� ��������� ���������� ���� ����� ��������

������������4������� ��I��� ������������������� �J���65����������� ��

������������� ���4���������������������6� ����������������������� ������

������������ ��������� ��I��� ����������� �����������������������

����������������������������������������������"%�����"A������������������������� ������0�������������

!��������������!��((�����������������������+�

Page 88: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

��Example

#� ##/+##/�##/+##/#/"##/#/"##A�A��"�#���"�+##�"###/"###/�###/"###/"+#/"##/�"+#/"##

������������������������������������������������.������������ �����������������������������.���

(�������������/���������������������C�������������������.����������������������� ������0���������������.��!��((�"�#'��������������������������������

� (�����������.����������/��.�����������������������.�����

� (����������� ��!��((�"�"'����������/��.��������������������������������� ������������/�������/�������������������������?��������������������������������������������������������� ������0�������������������������������������

�������������������������4������������ ������0���������������������������������!������ ��������������������������������������������������C�������� ������0������������'��������������������������(�������������������������/����������������������������<������������������������ ������0�����������������./Y/)/E�����'/����������.�����������������������������������������������������������������

����/������������ ������0���������������.�����������������/��.������������������������ /������������4��������������������������������������������������.���

� Possible Errors

� ����� ������0�����������������������N��/���X"�+/

�����M% '

# ������������

� See Also

������3�+,%#��7$�#��-,$%$+�%

Page 89: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

Zero Absolute Position

� Definition

������������������������������������������������0���/���4��������������������������������(�������������(������������-�������������

� Format

4���������� ��

7C0�D�5�5��C-D

%� ������ ��

�C-D

7����������������������������������������

������������0��������������������������

C0�D���������������������������������������������#�

C-D ����������������������������������.��������������������0������9�����.���4������ ����������������DM"/�6M�/�EM ��(�� �������������������������������.��/������.���������-����������� �����������������'��

��������

� Explanation

C����������������������/� �������� ���������������������������������� ����������������������������.��������������������������������������������������������������������������������������#������������������������������.�����!�����������������������������������������������������������

���������������������E����!�������-������������������������� �������������

(������������������������������������ ��������������������.�����(����������/����������������� ���� �����������.��/������������������������ ���������������'�

� Example

78�

78��

78&�>885�8885�8885�888

78&�>885"8885"885�888

78��

78&�>885�8885�8885�888

Page 90: Wiring, Setup, & ASCII Programming For C-Series Controllers

�0

������������������������������������������������� �����D�����6��.�����������������

���������������������������������E����!������������������������������������������������.�������������!����������������������������������������������������

?�����������������������/�����D��.����������A##���������� ����������������������������������������������###������)������/���������6��.���������###���������� ������������������������������������������������###�����)���������������������������������.���������������������������������A##/�###'/���������������������������

������.����/�����������������.���������������������������������?�����/�����D��.�����������������/��������������� ������������A##������6��.���������""##�����������������������������������������������/��������������:##�����������������������������������������������.���������������������������������A##/�:##'/���������������������������

,��������������������E����!�������-��������������������������������������������������/�������� �4����������A##/:##'���������������#/#'�!����������������������������������������������������������������

?�����������./�����������������������<����4����������/���������������������������������������������������������� ��������������������������������������������������������������������������A##/�###'������������������������+�

� Possible Error Messages

�.������������������

� � ���.������

� See Also

!�������1������������

Page 91: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

3-Axes Interpolation On/Off

� Definition

��������������������������������������� ��������.����������������������������.����������������������������������������������(�����������-�������������

��������!�����$�����������""���������:�$<!�:��������7��F�

����$����$@��:�������!��������$%������$���'�'

� Format

4���������� ��

7�C0�D�I�C4D

%� ������ ��

I�C4D

7 ���������������������������(������������

C0�D ���������������������������������������������#�

I �������������������!.�������������������������������

C4D ������������������������������������������!D9���������������������������������������(����8�������/���!D9������������������������������(�����������/���!D9����������������������������

� Explanation

F���� /�����������������4������!D9������������/�������/��������������������������.��������������������������������/���������������.�����������������������������������������������������G��� ����������.��������E��.�/���������������������������.���������������������������������������(�����������!.�������������?������/���������.������������������������/���������������������������������.�������������������� ��������������������

C�������.�������������������������/�������������������������������������������������.�/������� ��������������������������������������?������/�����������������������������������������������������������.�����������#�����������������������������������������#�

!����������������������.���������.��'����������������������������3������������������������������

Page 92: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

��Examples

@07@0e0@0A 2700,3000,1000,2000,350,1000,0,1000@0z1@0A1000,100,2000,100,250,100,0,30@0z0

�������������������������������� ���������������������.����������.�������������

����������������������������.�����������������,�������������������������������.�������������/�����D�����6��.�����������������������������������.�������������������������� �������/����������������������.���D����6���������������������A##�����"###����������������������!��������/����E��.���������������������+#�����������������#�

,����������������������.��������������������������"������������������z�

����/���������/����������.��������������������������������"###/�###/�+#'�������������/��������������������F����������������������������������������������������#���������������������������������������#���!������������������������������������/���� ��������������������������������������

,����.������������������.���������������?��������������������������������������.��������������������������� ����������������

� See Also

!�������1����(����������1����������(�����������!.��

Page 93: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Command Summary/Index

Syntax Page Description

Immediate Mode@0<axes> 69 Define Axes: x=1, y=2, z=4@0R<axes> 41 Home: x=1, y=2, z=4, confirm completion@0r<axes> 41 Home: x=1, y=2, z=4, confirm immediately@0S 71 Start, confirm completion@0s 71 Start, confirm immediately@0d<Gx>, <Gy>, <Gz> 63 Set home speed@0t 75 Start trace mode@0A Sx, Gx, Sy.... Gz2 46 Incremental motion, confirm completion@0a Sx, Gx, Sy... Gz2 46 Incremental motion, confirm immediately@0M Sx, Gx, Sy... Gz2 32 Absolute motion@0m Sx, Gx, Sy... Gz2 32 Absolute motion@0k 37 Erase battery RAM@0P 43 Identify axes' positions@0B<Addr>,<Data> 55 Poke RAM address with data@0c<Addr> 54 Read EPROM address@0b<Addr> 54 Read RAM address@0n<Axes> 79 Reset axes position to 0@0eS 58 Select Interpolation axes/plane{chr(254)} 68 Software reset{chr(255)} 73 Stop Execution@0i 40 Enter program mode@0f 61 Circular interpolation direction@0y... 34 Perform circular interpolation@0z 81 3-axes interpolation: 1 = on, 0 = off

Program Mode0 Sx, Gx, Sy... Gz2 46 Incremental motion1<Signal> 60 Send synchronization signal2<Signal>,<Offset> 77 Wait for synchronization signal, branch if applicable3<Number>,<Offset> 49 Make a loop, or branch if <number> = 04<Option> 44 Pulse, <Option> = number between 1 and 6

1 = output ON (or IN)2 = output OFF (or OUT)3 = pulse for 0.5 sec.4 = wait for pulse5 = send pulse and wait

for confirmation6 = wait for pulse and

confirm 5<Time>5 (Time) 74 Time delay, stated in 1/10 sec.6 Sx, Gx, Sy... Gz2 52 Move until impulse7<Axes> 41 Home motors, x=1, y=2, z=4p<address> NV 65 Set outputsn<Axes> 79 Set actual position as effective datummSx,Gx,Sy..... Gz2 32 Move absoluteeS 58 Select interpolation axes/plane: 0 = x/y, 1= x/z, 2 = y/zf 61 Set direction of circular interpolationy 34 Perform circular interpolationz 81 3-axes interpolation, 1 = on, 0 = off9 39 End program modeo65531 56 Read Input Port

Page 94: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

TROUBLESHOOTING

Page 95: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

Guidelines For Troubleshooting

(/�/�36)4/-)2/��.0/�+/.2 ��,0�)4/2 )�*)23�.24�)�,-. )23

�0,�-/+��,2-*'��624/0�2,�7)076+� .27/���(,6-4

/56)�+/2 ��/�.4?6� /4�,0� .>/2�.�.0 �)2�.2*�1.*�1) (,6

�)0� �7,2 .7 )23�.� /7(2,�0/�0/�/2 . )8/'�)��*,6�4,�2,

�//-� (. �*,60��.7>30,624�+.>/��*,6�7,+�/ /2 � ,

�/0�,0+� (/�7(/7>��4)�76��/4�(/0/@�4,�2, �. /+� � (/+'

)2� /.4@�7.--� /7(2,�)++/4). /-*'

No Holding Torque On The Motor

!�������������������������������������������/�������������������������3�����������������(��������������������/���������������������4�� ���������4��

� ����4��������������9������� ������2��������������������������"#'������������(�����/���������4��������������

� ����4�����������������"'��������������������������������

0/+,8)23�.�7.�-/�1) (��,1/0�,2� ,� (/�7,2 0,--/0�7.2

0/�6- �)2�4.+.3/� ,� (/�/-/7 0,2)7�'

��'�������������������������������������4�������������������������� ��(���������������3�������������/����������������������� �

� ����4����������������������������������������������������"#'�

� ����4����������������������������������������������� �������������������������4��������������������������� �����������"#'�

� ����4������������������������"' �����������������' ;���������������������������������������������4��������

���3�������������"#'���' 9.������������(����������������������������4��/��������������

������������;������������/�������� ������������������ ��� �

�'������������������(���������������������/�����������

Page 96: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

G����������������������������������������������������4�������������

���

���

F

���

���

� ����4������������������

�"'��G�������*?1������/���������������������������������������1�����-������

� ����4���������������������������"�������������������������1�����-����"'�

� ����4��������������������������������� �������������������1�����-�����'��9�����������������������������������������#�%�"��������

� !�����������������������������������������������������������

� !�����������������������������������������������������������������4������������������

��'��G�������*?1������/�����4���������������������������"�������

� �������������������������� ��������������"1�����'�����������������������(�����/�����������

Holding Torque Present, But Motor Stalls During Travel

C���������������������4��������/��������� �����������������������������������������������(������� ��������������������������������� ������������������������������������(����������������/�������������������������������������

� ���������� ������� ��������� ���������������������� ������������� ��������������������������������������0��������������/������0��������������/� �������������������/����������������������������/����������0�������������

�� �����������������������������������(�����������������������/����� ������������������������ �����������������

Page 97: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

� ����������������.���������������������������������������������������� �����������������##����+##������)�������������������������������������������������������������������������������������>����.����/��������� �������������������������

@ 0, 8000, 5000, 7700, 500

�����������������������������������������������������<����������������3���� ������������������3���������������������������������������������4�������������������������.����������������3���� ���������.��������������

(�� ����������������������������/��������������� ���������� ��������������������������

Inputs Or Outputs Are Not Functioning

����������������B������������B�� ���/�����������������4���������������������1�4����������� ����������������������������������������������� /���������������������������������������������������������;��������������"�����"%�

(��������������������������������������/��������������� ������������������4������������������������4������������� ��(����������

������������������������������������������������������)������������������������������������������� ����������� ������ ��������� ����

��������������������

4�����������9 ������� �6�������������� ������ �5��������� �����������������������������������������������)������������������

4�����������9 ������� ���� ��� �6������������� ������ �5��������� ������������������������ ������������������4��������������)����/�������������������������������������� ����������������������4�������������)��������(����������������������/� �����������������������������!����� ����4������������������������()*��(����������������������/� ����������������������������

����4� ���������������������������� ��������������� �������������������)�������

����4���������������������������������������&����������������������������������������� ����������������/�������������������������4�

(�� �����������������/������������������ ������������/�����������

Page 98: Wiring, Setup, & ASCII Programming For C-Series Controllers

��

No Communication With The Controller

����4�����������"#$/��""%/�����" �������������������������������4����*1������

� ;�������� ����-��*����5��1����������������������������� ����-�5��*1�-�������!�������4��������������������������*1�-���� ������������������������������� ��������������������<��������<��������� ����-��

����4����������;��������������� �����������������������

����4����������;����������������������

�"'�7�������������;���������������������������/��������������������������-��

��'�G��������������/�����4�����������������������"������������������������������������������������:������"��������4��������� �5���������������������������������

Page 99: Wiring, Setup, & ASCII Programming For C-Series Controllers

�/

$

TECHNICAL REFERENCE

Page 100: Wiring, Setup, & ASCII Programming For C-Series Controllers

/0

Specifications Of Controller Card

7�������� ���������9����������"##���.�"%#��/������������F*�9���B'-��������� � +8/��**�!���������� % ����7(F����������(������ ������������������������ ���������������������*������� ��������(�������������������������>�)?����������������"

*������-��� ��������������'�����(����� 1���72:����������

,� ),2.-

%����� � (�������� �

��+% 2����� ����4������+A1!D��� ����������A: ;���� ����������(������������������+����7��������������������-�

Error Messages

# M���������� M��������� ������������������������������ M����������������.�� M��.������������+ M�� ���.������% M������������� A M���������������$ M������������ M����������7 M������������������H M��������������.�������������� 0 M��������J�CK��������;' M����.���������������������

Self-Test Program

���������������������������������������������������������������������������������������������������������������������������������D�����6��.���������������!��((��������������������������������������������������������������� ��� ����������-����!����������+#�����������������������*����������������������������������-�/��������3���� ����������������������������������4����������������������������������� ����������������(���������������� ���������������������������������������������� ������������������

Page 101: Wiring, Setup, & ASCII Programming For C-Series Controllers

/�

�8�%�4�*��K* ����� �������� ��������� K�8�%�4�*�K*���� ������� ��� ������������������������������� ��� �K�8�%�4�*K� ������ ���K�8�%�4�*�K���������� ��� ����������� ������������ �����������5���������K$8�%�4�*K���������� ������������������6��K?8�%�4�*�K-���������� ��� ����� ���������������������5�������� �������� K>8�%�4�*�K��� ��������������������� ������6�� �����*���� ��� ����� ��KB8�%�4�*�K���������� ����������������6� ��� ����������� ��� ���� ������ ��K"8�%�4�*�K; �������'��������/-�4#��� �������������.=.�K"$����,�����0�*���88�88��%,��L#�&4 "?885�5B5�5��5#��5(���#(�M�-��N��2,�.$$88��8�43�2�#CDHD*1,��%�4�*�4�%+*OC2�#CD5NDP��8�-O.4�@,;O� �43�-O�HQ5Q5*1,��%�4�*N5-OP���$�43�-O.M=M�*1,��0�*���88��8�0�*����8�88�#2��,��8�,�(�88��,�+&,

Download Program������������������������������2!�(��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/����� ���/�������������������������������������4��������������4�������������������������������(����������������/������������������������� �������������������������������

C���������������������������798(�9�()*���������(��������������������������/������������<��������������������������������������������

�8��%,�M� � "?885�5B5�5��5���5�� 5���M�-��N��2,�.�$$

�8�%�4�*�L,�������������� ����������� ���������������.��

�8�4�%+*��-O

�8��%,���-O�3���4�%+*�-�N�

$8�24�,�4�%+*N�52O

?8�%�4�*�N�52O� �0��+/��888

>8�%�4�*�2O

B8�43���*�C,�3C�D�*1,��0�*��$8

"8�#2��,

�88�%�4�*�L3����������������������������M

��8�,�(

�888��,&���������� ����������6��� ��������� ����������

�8�8��,&����������� ����L�M�������������������� ���������������

�8�8��,&����������� ����� ��L8�������������� ��������6�������

�8�8�43�2�#C�DH��*1,��0�*���888

�8�8�-O.4�%+*OC�5�D� �43�-O.M��*1,���,*+��

�8$8�%�4�*�L*��������� ��,�� ��.��R5-O

�8?8��*�%

���������������������������������� ����������������������������������������*��

�� ����������������������� �����-�#44�� ����� ���� �������� ���� ��������

�������� ��������������������

Page 102: Wiring, Setup, & ASCII Programming For C-Series Controllers

/�

ASCII Codes��������������������������!��((����������������������������������� ������0�����������������F�����������������������������������������������������/�����������������������������������������������������������������������������������

Decimal Character�� Z� B�+ [�% Y�A \�$ ]�: 5 # � " ' � O � @ / + � % � A ) $ # : "+# �+" �+� +� ++ %++ A+% $+A :+$ �+: &%# N%" M%� X%� ^% ��������������%+ !%% 2%A �%$ 7%: 9A# >A" HA� ?A� (A =A+ LA% ,AA 1A$ F

Decimal CharacterA: *$# -$" R$� ;$� �$ �$+ G$% 8$A C$$ D$: 6:# E:" S:� _:� T: `:+ V:% a:A �:$ �:: �"## �"#" �"#� �"#� �"# �"#+ "#% <"#A 4"#$ "#: �""# �""" �""� �""� 3"" �""+ �""% �""A �""$ �"": �"�# ."�" "�� 0"�� P"� b

Page 103: Wiring, Setup, & ASCII Programming For C-Series Controllers

/�

A Brief Lesson In Hexadecimals

Base Ten

*������������������ ���������������������������������������� ���������������3���� ����/����� �#/"/�/�/ /+/%/A/$/�����:/���������������������3����������(���������/��������������������������������B����B�������*����������������������/������������������������������������������������������������B����B����/�������/����������������� �����������������������3����� �������������4������������B����������������B����������������������������������������B�����������������B���������������������������������������������������?����������������"$����3������"�.�"#�@�$�.�"���������"�������������$�����������������*���������������������������������������::'/������������������B��������B����������������/������������������������� ����������������������������

Base Sixteen

?�.����������������������������.�������?���������� �����������.�������3��� �������������������������3����������������� ����������������������������� ��������������

7���� #��"�������� ��+��%��A��$��:��"#��""��"���"���" ��"+?�.������#��"�������� ��+��%��A��$��:���!����2��������7����9���>

����������� ������������������������������������.��������������/��.����������������4����������.������'��������� ��������� ���������.�B?B?������:��������������������������:?��������������3���������.������

(����.������/�����������������������������������������B����B�������?������/�����������������.����/����������������.������ ����/�������.��������������������������������������������������������?������������������������������������4�����������B�.�����B����/���������������� ��.�����������������������3����� ��������������������������������������������/������������������������������������������������������������������������������������������������������.������������������?���������.��������������������������"$?����3������"�.�"%�@�$�.�"��������������.���������������������������������������������������3���������������������� '�

������������������������������.����������������������������>>?�����������������������������������������������������������������������������������������"+�.�"%�@�"+�.�"�����++���?����/��������������������������/�������������/�����B��������������� ��.��B�������������������/������������� ���������������� ��.���������������������

��������?�.�����������������������������������������4���������������������������������������� �����2 ��������������������������� �����������#�����++������������������������.��� ��������������������������?�.����������#?���>>?'�

Page 104: Wiring, Setup, & ASCII Programming For C-Series Controllers

/�

Converting Between Bases

������������� ����������������'����������������#������++������?�.�����/����������������� �"%�������������������������3����������������������������������������������������'���������������������������������������������������������������������������'��>����.�����

�����������" ������?�./������" ��� �"%����������$����;��������"+��>���?�.�� ����'"%'" �

?���������?�.��������������$>?�

��������������������������������������++������?�.�����/�������������������������

�"'�7���������������� �"%�����������������������������������������������������������������������������������.������������������������������'�

��'�(�����������������������������������������0���/�����������������������������.�����������������������.�������������������

��'��������������������������0����������������������������������������������������������������������������������������'�

>����.����/������������$:A+����?�.�

��������+%# ;��������"+��>���?�.�����/����������������������'"%'$:A+

���������+ ;��������#"%'+%#

��������� ;����������"%'�+

�������# ;��������������������������������'"%'�

?���������?�.����������������#>?

�����������?�.��������������������������/������������������������������?�.����������������������"%��"������������������������������������������������������������������������������������������������������������������������ ��"%��"�/���������������3��������������?�.���������������������������������

Page 105: Wiring, Setup, & ASCII Programming For C-Series Controllers

/�

>����.����������������>!�7?������������������

> M "+�.�"% �" M "+."%� M "+. #:% M %" #! M "#�.�"%��" M "+."%� M "+.�+% M ���$ #� M ����.�"%��" M "+."%" M "+."% M ����� #7 M "��.�"%"�" M "+."%# M "�." M ������"�

>!�7? M %++��

2's Complement

������.������������������5��������������������������������������������#���$/�$$/%#A������������������������������

������.������������������5���������������������������������D����������������� �����������?�.���������"%AAA�"%�D������� ���������������������"�����$/�$$/%#$�

�����������3�������������5���������������������.��������������������������#����9>>>>>'�����4����������������������������������������������������

�����������3�������������5����������������������.��������������������������>#####����>>>>>>'��������������� ����������� �������������������������������������������������������"%AAA�"%����������������

Page 106: Wiring, Setup, & ASCII Programming For C-Series Controllers

/�

?

APPENDIX

Page 107: Wiring, Setup, & ASCII Programming For C-Series Controllers

/�

Connector Pinout For Interface Card 4.*, 5.*

� �

&- � � &-

&- � � &-

&- � � &-

&- � � &-

&- � � &-

&- � � &-

(4��� ��� 8 9 � � &-

(4��� ��� 8 9 � � 8 9 (4��� ���

4#2���� ��� 8�9 / / 8�9 4�1���� ���

&- �0 �0 8�9 4�1���� ���

��������,�:��� 8 9 �� �� 8 9 ��������,�:���

��������,�:��� 8 9 �� �� &-

&- �� �� &-

&- �� �� &-

&- �� �� &-

&- �� �� 8 9 '�%�+�#���

������� 8 9 �� �� 8 9 '�%�+�#���

������� 8 9 �� �� 8 9 '�%�+�#���

������� 8 9 �/ �/ &-

-�%%���"���+�#��� 8 9 �0 �0 8 9 -�%%���"���+�#���

-�%%���"���+�#��� 8 9 �� �� &-

&- �� �� &-

&- �� �� &-

&- �� �� &-

�;�%%$;���� 8�9 �� �� 8�9 �;�%%$;����

�;�%%$;���� 8�9 �� �� ��.0

��.0 �� �� ��.0

&- �� �� <��"���

&- �/ �/ &-

!�� �0 �0 !��

&- �� �� ���%�$������

��� �� �� ���

&-=��#�+#���+�#�

8 9=���6�$��#��

8�9=���6�$�����