Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cthompson

Pages: [1]
1
Technical support / Re:Serial Comunication with AB Ultra 3000 Servo
« on: August 06, 2013, 12:17:07 PM »
Thanks to your help and that of technical support, the problem has been resolved.  The solution was to connect only pins 2,3, and 5 and clip the wires for any other pins.  There must have been something that interfered with the RS232 communications with all pins on the straight through cable connected.  I can't speak highly enough about the level of support that has been provided both here and through technical support.  Both have gone above and beyond what most companies would to help with this problem.  Thank you very much.  I can now sleep again.  ;D

2
Technical support / Re:Serial Comunication with AB Ultra 3000 Servo
« on: August 04, 2013, 05:56:50 PM »
Will you provide a list or a diagram for the pin outs of the F2424 Com 1 Port?.  I did not see it in the user manual.  I want to determine if the null modem adapter is required based on the diagram provided in my previous post.

3
Technical support / Re:Serial Comunication with AB Ultra 3000 Servo
« on: August 02, 2013, 12:33:33 PM »
According to the Ultra 3000 Hardware Manual, for RS232 Communication, Pin 2 is RS232 Input or RCV, Pin 3 is RS232 Output or XMT, and PIN 5 is common.  The Integration manual specifically states to use a null modem cable when connecting to a PC serial port, and i have verified that i can only communicate from the PC to the Ultra 3000 using the null modem adapter.  A diagram, which i have attached, shows Pin 2 of the Ultra 3000 connected to Pin 3 of the PC, and Pin 3 of the Ultra 3000 to Pin 2 of the PC.  I have looked for a pin out diagram for the F2424, but have not found it.
The Ultra 3000 uses something called Ultra Host Protocol for Communications.  Not sure exactly what this is. It also states that it implements the standard NRZ asynchronous serial format.
Per your post, i connected the F2424 to the PC with the provided serial cable.  When i triggered the commands on the PLC, the output from the PRINT function showed up in hyperterminal exactly as they should when sent to the ULTRA 3000.  The program in the F2424 would also see any commands issued by hyperterminal and write them to a variable using the INPUT Function.
I have connected the F2424 to the ULTRA 3000 both with and without the null modem adapter, and have not been able to get the ULTRA 3000 to respond.  The green light on the F2424 flashes whenever a command is sent with either connection.
With further testing, i have realized that the ULTRA 3000 will only recognize commands from the PC when the hyperterminal emulation mode is set to VT100.  I am not sure exactly what this is, or if the F2424 is capable of this emulation, but it seems like this may be the problem.
I appreciate your time in looking at this, and await your response.  Thank you.

4
Technical support / Serial Comunication with AB Ultra 3000 Servo
« on: July 31, 2013, 11:30:25 AM »
I am trying, with no success, to send commands to an Allen Bradley Ultra 3000 from an F2424 through the Comm 1 Port.
The AB host command manual shows the data format as
Start    Address    Parameter    Function    Data    Checksum    End
  :           aa             ppp                 f             dd          cc        <cr>, where all commands begin with a colon (0x3A), and terminate with a carriage return (0x0D).  I can successfully send out a command such as :0006110375 though hyperterminal.  The hyperterminal has to be set with the following parameters:

Emulation is set to VT100

ASCII SETUP:
Selected (checkmark)                                   Not Selected (no checkmark)
Echo typed characters locally                       Send line ends with line feeds
Append line feeds to incoming line ends      Force incoming data to 7 bit ASCII
Wrap lines that exceed terminal width

The Ultra 3000 com port is set to 38,400 baud, 8 data bits, No parity, 1 stop bit, No Flow Control.
The connection to the PC was made with a null modem adapter, which was also used when connecting to the F2424.
I have a string of commands that when issued on the PC will initiate motion on the servo drive, but do nothing from the F2424.

As an example, my code uses the Print Command;   PRINT #1 ":0006110375" and sets a timer for 5 seconds after which time the command A$ = INPUT$(1) is issued.  There is nothing written to A$, and there is no motion when going through the full string of commands.  I have tried this with every variation of the SETPROTOCOL Command, including no protocol.  I read another post on the forum, and also tried changing the commands to
PRINT #1 ":0006110375\0D\0A"
This variation also received no response.
I am trying to find out if there is an error with my formatting of the command, or if the F2424 is capable of sending the command the same way the VT100 emulation does on hyperterminal.
Sorry for the long post, but i wanted to give aas much information as possible.  I appreciate any help regarding this matter.

5
Technical support / Re:Stepper Motor Control
« on: February 07, 2013, 11:38:50 AM »
Thanks for the reply.  This is to be used as a calibration loop which will set the stephome position for stepper channel 1.  After calibration, the loop would not be run until the next time calibration is required. This is the loop portion of the calibration routine.
STEPSPEED 1,300,50
J=2307 ' Approximate Number of Steps per Unit Change in ADC Value.  (Actual Value is .2307)
C=0
A=ADC(1)   'Get Value of ADC Channel 1
E=DM[303]-A  'Calculate the differnce between the Target Value and the ADC Reading

WHILE ABS(E)>4 AND C<100
   V=E*J/10000
   STEPMOVE 1,V,150
   A=ADC(1)
   E=DM[303]-A
   C=C+1
ENDWHILE

My concern was that the loop would be sending a new stepmove command before the previous command had finished executing.  If this is the case, then the ADC(1) value would be read before the stepper had finished moving.  This could cause the loop to never converge.  That is why i had asked if the loop continued processing even if the stepper had not completed the move.
Thank you for your help.

6
Technical support / Re:Stepper Motor Control
« on: February 04, 2013, 06:55:50 PM »
Thank you for your prompt reply.  I have purchased the F2424, but have not put it into operation.  I am in the process of finishing the programming on the simulator before sending to the PLC.
I have another custom function/stepper control question.  I am using a while loop to read the value from an analog sensor attached to ADC(1).  This is compared to a set value and the stepper moves a number of steps until the values converge.  
Will the loop pause until all the stepper has moved, or will the loop continue?  
In the case that the values don't converge, i have set the loop to exit after 100 iterations. I don't won't the loop to exit until the stepper has moved as required, but also don't want to end up in an endless loop.

7
Technical support / Stepper Motor Control
« on: February 02, 2013, 01:41:10 PM »
I am new to Ladder Logic Programming and am sure that this will be the first of many questions to come, so please be patient.
Is it possible to send one pulse to a stepper motor driver?  I have an application in which certain motors will index one step at predetermined intervals.  
I cannot seem to do this in the simulator.  When i set the stepmove command to 1 step, the popup in the simulator says it moved 0 steps.  Anything two steps or more works fine.
I would like to do this without microstepping if possible, as i read that it reduces torque.
Also, is there a command to clear all IO without clearing the Data Memory?  I have certain DM locations that i would like to retain duiring a stop condition.

Pages: [1]