Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 5 of 6

PCM-11 Application Module Operator's Manual, pages 41 to 50

Pages 41 to 50 of 56

The original document is the PDF (3.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Emerson PCM-11

Page 41

Building Your Program M Math Equation

5. Motion is always stopped at the END statement on the LAST execution of the main program, that is, one that is initiated by I/O or serial commands. 6. When Program Indexes or Program Jogs are stopped when reaching an END statement, the STOP/HOLD Decel ramp (from the Limits Menu) is used. If this is too abrupt, you can use the “DC” command in a program to change that ramp during the program, and to reset it to default values later on.

LB Labels The LB command allows you assign an alpha-numeric label to program steps. This allows more convenient and obvious program writing by clearly identifying the function of the more significant program steps. Each alphanumeric label has an associated text string (up to eight characters) which is stored in the FX Drive as the data corresponding to the Label Program Step. The PCX software ensures that all labels are unique in each program. However, the same label can be used in different programs on the same drive. If an extra program step is inserted in a program with labels, two things are done by PCX: 1. As with other program steps, the step numbers of all labels below the inserted line will be incremented by one. 2. Any jumps to the labels below the inserted line are also incremented by one step. PCX will adjust all jumps to point to the new step number of the label.

Using a Label in a Program Program labels cause a slight increase in program execution time. Large numbers of setup labels may possibly have an adverse effect on system performance.

Select the Program Menu and the program you wish to modify. Move the cursor to the point where you want to add a Step Label. Enter “LB”. PCX will pause and prompt you for the 8 character label. When you have completed the entry, press the <Enter> key, followed by the <Esc> key. This action will send the label information to the FX Drive and the PCM-11 Module.

M Math Equation Math operations during a program allow index or program parameters to be adjusted according to stored instructions and current conditions. This function calls a previously defined and stored equation for immediate execution (entered in the Equations and Math Setup Screen). (See “Equations” and “Equation Setup”, PP. 17-19.)

Using Math Equations in a Program When “M” is entered as a program step, PCX pops-up a window displaying all of the stored equations. Simply highlight the desired equation and press the <Enter> key. The selected equation will be entered as a program step and the cursor will move to the next program step.

35

Page 42

PCM-11 Application Module Operator's Manual

RT Real-Time Clock RT is a direct drive command that you can use in a program to determine the elapsed time between two or more events. When you use RT to retrieve the current time from the system clock, be aware of the following constraints: 1.

The realtime timer ranges from -2147483 . . . to 0 . . . to +2147483 ms.

2.

RT rolls over from the maximum response of +2147483 ms. to -2177483 ms. every 70 minutes.

To use RT to track elapsed time, use three User Registers, UR28, UR29, and UR30 (for example): DC * DC M

RT = UR28 (intermediate steps between timing points) RT = UR29 UR30 = UR29 - UR28

UR30 is the time between the two events in milliseconds. Check to be sure that you have not crossed over the rollover point: IF UR30 > = 0 ELSE

THEN TIME = UR30 TIME = UR30 + 4294966 (ms.)

Now that you have an elasped time between event, you can use the value in user register TIME as a condition for branching, or similar decision making.

ST Stop Motion Since using Program Jog could cause infinite motor shaft rotation, the Stop Motion program step ST allows motion to stopped BY the program. This program step uses the Stop/Hold Decel Ramp specified in the Limits screen to bring the motor to a halt. But only motion is stopped by this step, and only at this point. Program execution continues. The next program step will be immediately executed.

Using the Stop Motion Command in a Program At the appropriate program step, enter “ST”. When the program reaches that step, the drive will initiate a ramp to zero velocity and immediately go on to the next program step.

36

Page 43

Building Your Program WI Write Index, WJ Write Jog

WI Write Index, WJ Write Jog This command allows a program to change index or jog parameters such as distance, velocity, acceleration rate, deceleration rate and dwell time while the program is running.

Using WJ Write Jog in a Program To change Program Jog parameters (the same as Serial Jog parameters), enter “WJ” as a program step. A small window will pop up, allowing you to select Serial Jog Velocity, Accel Time, or Decel Time. When a selection is made, a second window appears, allowing you to choose Immediate Value or the value of any of the 64 User Registers. If Immediate Value is chosen, you will be prompted to enter the value for the parameter you wish to change. Parameter units are the same as found in the “Jog” setup screen. If you choose any of the User Registers, the Jog parameter will be set to the value found in that register. (Remember, User Register decimal places are set when each Register is defined.) When any serial jog parameter is changed on the fly during program execution (e.g., if the jog velocity is changed while running Program Jog), the FX Drive would immediately ramp to the new velocity using the jog accel/ decel ramps.

Using WI Write Index in a Program To change Program Index Parameters, enter “WI” as a program step. A small window appears showing the following parameter choices: Dist/Pos Velocity Accel Time Decel Time Count A second window appears, showing Immediate Value and all of your User Registers. This selection will be the source for the parameter data to be changed. If Immediate Value is chosen, the screen then prompts for the Index Number whose data will be changed. After choosing an Index, the program will ask for the new parameter data to be entered for this index. If a User Register is selected, the program then asks you for the index Number whose parameter will be made equal to that register. Unlike changes to Jog Parameters which are immediately accepted and executed, Index parameter changes are not recognized after entry until the next time that index is initiated. For example, if Index 34 distance is changed while Index 34 is running, the actual distance traveled will not change until Index 34 is run again (this is because the distance is set at the beginning of the index execution).

37

Page 44

PCM-11 Application Module Operator's Manual

Transmit Data (X) This command transmits data in an ASCII format via Serial Port “1A” to a device such as a programmable display. The display would then show the serial “message” in large alphanumeric characters for easy viewing by machine operators. When on-line with an FX Drive, do not attempt to initiate a Program that uses the “X” command from the PCX program screen. You must initiate the program from the Terminal mode (always available on-line by pressing <ALT><D>). Also, do not initiate PCX while connected to a drive that is already running a program with an “X” command.

Any stored User Message may be followed by the contents of any User Register. When the “X” program step is entered, PCX prompts you for either Register Data, User Message or Both. If you select User Message, a window pops up displaying your pre-defined user messages. Highlight the message you want to send and press <Enter>. If you select Register Data, a window pops up displaying your User Registers. Highlight the register whose data you want to send after the message and press <Enter>. If you select Both, first the User Register pop-up window is displayed. Then after selecting a User Register, the user message window is displayed. When this step is encountered in a program, the data you have specified will be immediately transmitted to the FX Drive serial port “1A” in ASCII format.

38

Page 45

Suspend/Resume Functions Suspend Screen Parameters

Suspend/Resume Functions The Suspend Function is used to temporally suspend the operation of a running program and is initiated with Input Function #31. The Resume Function causes the system to finish the program that was suspended. Resume is initiated with Input Function #32. When a Suspend command is received, the FX Drive will stop motion using the Stop/Hold Decel ramp entered in the Limits screen. The motor position will then be stored in a Return To Position Index, and the interrupted program task will be stored in the memory of the drive. The drive will now accept and execute new motion commands such as Jog, Home, Index, or Program Initiate. This can continue until a Resume command is received. Upon receiving a Resume command, the drive will continue the execution of the program which was suspended. If an index was in progress when the suspend occurred, any index distance remaining at the end of the Suspend ramp will be executed by the Resume function, regardless of the motor position at the time of Resume. If you move the motor in any way during a Suspend function, and you want the motor position to be the same as if the Suspend had not occurred, you must run a “Return To Position Index” before you initiate a Resume function. You must have previously set up this index as an absolute index with the speed and ramps you wish to use for the Return to Suspended Position move, along with a repeat count of 1. The index you set up is the one you select when you enter “Return/Resume Index Number” in the Suspend/Resume screen. Suspend, Resume, Return to Position, and Clear Suspend functions are activated through input functions in the I/O.

A Suspend will not be accepted while a Hold cycle is active, while a previous Suspend is active, or a decel ramp is in progress. The memory for the Suspend function will only hold one event. If you attempt a Suspend command after the drive has already been suspended and the Suspend memory not cleared, the new information will not be retained. You can clear suspended memory by using the Abort Suspend Function (Input Function #33), or a hardware Stop command (Input Function #11).

Suspend Screen Parameters When you select the Suspend option from the “Define Motion” screen, the Suspend data entry screen shown in Figure 30 is displayed.

39

Page 46

PCM-11 Application Module Operator's Manual

Figure 30 Suspend Screen

Run Program On Suspend This feature allows another program to be automatically initiated when a Suspend is accepted. After the FX Drive stops on Suspend, the program you specify in the program number parameter will be executed without the need for a Program Initiate.

Program Number This parameter determines which program is to be initiated when a suspend is accepted and the “Run Program On Suspend” feature is used.

Automatically Clear After Program This feature may be used to automatically clear a Suspend cycle. When used with the Run Program On Suspend feature, the program you selected will be executed before the Automatic Clear occurs. Once a Suspend cycle is cleared, the original program will not be resumed and the controller will be free to accept another Suspend input or motion command. When this feature is not used, a Resume input is needed to clear the Suspend cycle.

Automatically Resume This feature will cause the drive to resume a suspended program without the need for a Resume input following the Run Program On Suspend program.

Automatically Return After Resume This feature causes the “Return Index Number” index to be automatically initiated when a Resume input is accepted. When a Suspend input is accepted and the motor stops, the current position is stored in the index position specified by the “Return Index Number” value. To perform properly this index must be set up as an absolute index with a count of one. Then the motor will return to the position where the Suspend occurred, and continue with the original program.

40

Page 47

Suspend/Resume Functions Suspend Screen Parameters

Return/Remember Position Index Number This parameter determines which index is to be initiated when a Resume is accepted and the “Automatically Return After Program” feature is used. When a Suspend input is accepted, the current position will be saved to this index. All other index information should be set up by the operator. This index must be set up as an absolute index.

Automatically Suspend Upon Fault This function allows a fault to be handled without losing the current program setup or motor position. When this function is enabled, the following conditions apply: 1. A Suspend is automatically executed following a reset of a qualified fault. After the drive has been reset, operation is identical to a normal Suspend. 2. The Suspend-Upon-Fault capability applies only to the following faults: 1 fault - RMS current or Continuous Torque Exceeded fault 5 fault - Motor temperature fault 6 fault - Bridge circuit breaker is open or low AC voltage 7 fault - Amplifier bridge temperature fault F fault - Following error fault only. 3. The Suspend Upon Fault may only occur in a situation where Suspends are allowed, i.e. Programs. Unlike other Suspend conditions however, a Suspend Upon Fault may occur during the ramp down portion of an index which occurs in a program. 4. When a fault occurs during a Suspend function, the program which was running during the Suspend is terminated. However, the Suspend remains active following a fault reset. All suspend functions and rules apply to fault initiated suspends.

The “Out Of Index” output (output #45) is used to indicate that the motor position is within the faulted index distance when a Suspend occurs as a result of a fault. This output will become active if the motor moves past the end of an index during a Suspend Upon Fault, or is moved backwards before the faulted position where the Suspend was activated.

41

Page 48

PCM-11 Application Module Operator's Manual

42

Page 49

PCM-11 Input/Output Functions PCM-11 Input Functions

PCM-11 Input/Output Functions PCM-11 Input Functions The following Input functions are available in addition to the input functions listed in the “FX Drives Setup and Programming Operator’s Manual” (P/N 400282-00) when a PCM-11 Motion Program Controller is employed with an FX Drive. In order for the PCM-11/FX Drive to respond to an input, the selected line must draw a minimum of 2 ma. at 10.5 vdc for 3 to 7 ms. Maximum voltage to apply to an input line is 30 vdc. 22

Zero Position

Sets the current position of the motor to zero. All absolute positions will be referenced to this set zero position. 24

Remember Position

Stores the current position of the drive in a Return absolute index. (Default = Index 0). This index number may be changed in the Suspend Function menu. 25

Return To Position

Returns to the position defined by Remember Position input. This input uses the Return index which must be set up as an absolute index. 26

Clear End Of Sequence

Clears the End Of Sequence output. If not assigned, the End Of Sequence output will automatically clear when the next motion occurs. If this input is assigned, the output can only be cleared by activating a “Clear end of sequence” input. 27

Clear Programmable Output

Clears a Programmable Output. Each assigned Programmable Output requires a separate “Clear Programmable Output” line which corresponds to the PGO’s (output function #12) in the same order. If four lines are selected for PGO’s, this input function requires four lines to clear the PGO’s. 28

Wait/Jump Inputs

Used with the Wait For Input program function to stop program execution until the input line assigned with External Input is activated, and with the Jump program command to change program flow based on line conditions. Sets the starting Input Line number for multiple Wait/Jump Input Lines. If your system requires four Wait for External Input lines, you could assign any four consecutive Input Lines.

43

Page 50

PCM-11 Application Module Operator's Manual

29

Program Initiate

Executes the selected program. Edge sensitive function. Must be taken from low level to high level to be recognized. 30

Program Select Lines

This input function allows you to select a program with Input Lines and sets the starting Input Line number for a number of Program Select Lines. For example: If your system requires four program select lines, you could assign any four consecutive Input Lines. If you assign the program select function to Input Line #5, then entered a 4 as the number of Program Select Lines, the Program Select function would now be assigned to Input Lines #5, 6, 7 and 8. You could now select programs 0 through 15. The default format of the program select lines is binary. That is, the first line that you assign has a value of 1, the second a value of 2, the third a value of 4, the fourth a value of 8 and so on. The program number selected is the sum of the values of the lines activated. Selecting program 5 in this example would require activating lines 5 (value 1) and 7 (value 4) while activating the line assigned to Input Function 29, Program Initiate. If no lines are activated, this is the same as selecting Program #0. 31

Suspend Program

Stops the execution of a program until the input line assigned with Resume is activated. See Suspend/Resume Functions Section of this manual for a complete discussion. 32

Resume Program

Resumes the execution of a suspended program. See Suspend/Resume Functions Section of this manual for a complete discussion. 33

Abort Suspend

Clears the In Suspend output and returns the drive from a suspend cycle to normal operation without the need to “resume” and completion of the suspended program. (Also see “Suspend/resume Functions” in Program section). 34

Clear End Program

Clears the End Of Program output. If not assigned, the End Of Program output will automatically clear when further motion is initiated. If this input is assigned, an input is required to clear the output.

44