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.


Topics - Joel Moore

Pages: [1] 2 3 4
1
General Discussions / Double debounce design
« on: September 04, 2019, 10:55:49 AM »
I'm using an optical sensor to detect a gizmo on a part elevator.  Depending on the mode of operation (e.g. loading or unloading) the PLC will either be looking for the sensor to turn off or on to decide when to stop the elevator.  The gizmo is a little floppy so it can cause the optical sensor to oscillate between states at the edge of detection.  So clearly a de-bounce circuit is required.  One that de-bounces both transitions.

The attached image is what I'm using and it works but I'm always interested in finding more elegant/efficient ways to do things.  Have I made this more complicated than necessary or is this about the best that can be done?

Edit: By the way, the 2 second setting for the timer is just to make it easier to watch the behavior.  The actual timer is 100ms

2
Technical support / PLC hanging
« on: January 07, 2019, 10:49:09 AM »
I'm using an FMD88-10 in a very basic application as a 2-axis stepper pulse generator.  We have some manual buttons, limit switches, and beam sensors all working together in a physical relay network to provide the PLC with "RUN" and "DIRECTION" inputs for each axis.  It's a very simple program, basically just STEPMOVE and STEPSTOP in response to these inputs.

A few times now the system has stopped working and upon connecting to the PLC I am presented with dialog box that says:

"Run-Time Error in Fn #5.
 Error: DM32[] index out-of-range".

In the ViewVariable dialog I can see the following message being printed to the virtual LCD display:

"Undef. Interrupt
CF #0005:006E"

Other info:
- Custom function 5 is simply the command "STEPSTOP 1".
- I don't have any interrupts defined.
- I don't use or refer to DM[32] anywhere in my program
- The PLC's firmware is version r76A

Thanks for any advice you can offer.

Edit: Corrected typo in error dialog message

3
Technical support / STEPMOVEABS not always setting Move Complete relay
« on: August 11, 2017, 08:14:59 AM »
I think I've narrowed down the cause of a frustrating issue we've been having with our machine where a motorized axis would complete a move yet our PC-based control software would never detect that the move was complete.  It seems that on occasion STEPMOVEABS will successfully finish a move but the move complete relay never gets set (which is what our PC-based control software is monitoring).  By the way, this isn't related to the issue described here since we are definitely moving.

I narrowed it down to the PLC by capturing the serial communications between the PLC and the PC.  One of the commands in the PC software's update loop is to read a bank of relays (host command RR) which contains the move complete relay and the response clearly shows that the relay is not changing state.

My communications log captured 1255 sent commands that result in STEPMOVEABS, the last one of which failed to set the move complete relay.  That's many more moves/shift than a machine would typically make in a production environment but it's still concerning since I think it's reasonable to expect it to never happen.

Could the fact I'm reading the state of that relay many times a second via the RR command sent via RS232 be interfering with the PLC's ability to set it once a STEPMOVEABS is complete?  That sort of conflict would certainly explain why it seems so random.

BTW, we are using FMD88-10 PLCs.  If there's any other info that might be useful let me know.

4
Technical support / Interfacing with TTL logic
« on: January 18, 2010, 10:26:40 AM »
I was hoping someone here could help me figure out what I need for a circuit to connect a TriPLC to TTL I/O.  Specifically, the PLC's inputs.  I understand we need transistors but I was hoping for something a little more detailed.

I see the T100 Manual has a circuit on page 1-4 detailing something similar for CMOS.  Is this all we need?  I was under the impression that CMOS and TTL are not compatible so I was hesitant to implement what is shown there.

Ideally there would be a DIN-rail  mountable module I could use but either these aren't common for some reason or else I'm searching on the wrong terms.  The few I've found tend to be very expensive -- more expensive than is justified by a few transistors.

5
General Discussions / Generic ladder logic question
« on: January 08, 2010, 10:11:58 AM »
I'm looking for some advice on how to accomplish the following in ladder logic:

I have 3 inputs that are being used to command the PLC to move to 1 of 8 predefined positions.  I'm trying to figure out a robust way to respond to those inputs.  Ideally I want to make sure that whatever external system is controlling the inputs has plenty of time to make its changes before I start to move.  For example if the inputs are currently "0,0,0" and the external system is in the process of changing to "0,1,1" I don't want to initiate a move while the inputs are in the intermediate state of "0,0,1".

Currently I just have a 1s timer that checks the state of the inputs but that still leaves the possibility that I check the state while the inputs are in the middle of changing.

The best way, in my opinion, would be for a timer to start when the system sees an input change and the PLC won't initiate the move until the timer expires.  However there are a total of six events that could trigger the timer (3 inputs, either on or off).  I have no idea how to design this using ladder logic.

6
Technical support / Question about stepper motor behavior
« on: January 08, 2010, 09:45:49 AM »
This really isn't a problem I'm having but more an attempt to better understand how the TriPLC controls stepper motors.  Two questions really:

1) If you command an axis to move a distance that is less than twice the acceleration value what happens?  For example:

STEPSPEED 1, 2000, 500
STEPMOVE 1, 800, 1

2) What about if the commanded distance is less than the acceleration value:

STEPSPEED 1, 2000, 500
STEPMOVE 1, 100, 1

The reason I ask is because the sounds coming from my stepper don't often match my expectations.  It almost sounds as if it's accelerating a different rates depending on how far I tell it to go which doesn't seem right to me.  I would think the PLC would always try to maintain the same acceleration slope while lowering the max speed.

7
Opinions & Feedback / F-series...wow
« on: October 30, 2009, 02:54:17 PM »
I'm really impressed by the features included with the new F-series PLCS.  You guys really outdid yourselves.  Ethernet?  Two RS-485 ports?  Direct stepper driving?  Separate ground for I/O banks? (edit: Wow, and ZigBee support)

Unfortunately we no longer make the product that we used to buy TriPLCs for but we would have instantly replaced the MD888+ with the F2424.

We'll definitely keep this in mind for future projects.

8
Technical support / Corrupted response from PLC
« on: June 19, 2008, 11:19:22 AM »
Lately we've been having a lot of problems with the communications between our HMI software and the T100MD888+ PLCs in our machine.  We started logging the comms using Hyperterminal and a split cable and noticed a strange pattern.  It seemed the response from the PLC was corrupted but it was always the same character of the response.  For example, here are some of the corrupted responses:

@01Wb?4*
@01RD00003?001F001F001F001F001F001F001F001F0000000002B82B*

The "?" is what Hyperterminal prints in place of an unprintable ASCII code I think.  These errors have been captured multiple times and the "?" always appears in the same location for those errors (there are others).  This tells me it's not random glitches or RS232 noise.

Has anyone seen this pattern before?  I'm at a loss as to what could be causing it.


9
Technical support / Reverse Text on MD-HMI?
« on: May 10, 2007, 06:26:32 AM »
Is there by any chance a control code to reverse the "color" of the text on the MD-HMI (i.e. light text, dark background)?

Alternatively, do you have a link to a spec sheet for the display on your MD-HMI?

10
Technical support / Automobile applications?
« on: April 25, 2007, 03:04:28 PM »
Has anyone tried using T100 PLCs in an 12V automobile environment?  I know the PLC can be run at 12V but I wasn't sure if there are other concerns in this situation (engine noise?).

I got someone excited about the possibility of using a TriPLC combined with a touchscreen to control some systems on his custom car project and I want to make sure I'm not leading him down the wrong path.

11
Technical support / Looking for input on PLC "failure"
« on: December 07, 2006, 07:18:45 AM »
(I put "failure" in quotes because the PLCs are still working as far as I can tell.)

We fried the resistor located next to the COMM1 port on two T100MD888+ PLCs recently (both part of the same machine).  I had done this once before on a 1616+ PLC and when I emailed Triangle back then about this resistor I got the following response:

Quote
The large resistor next to COMM1 reader is a current limiting
resistor that connects the ground voltage of the PLC and that of the
PC (or other devices) being hooked up to COMM1. For some reason your
connection caused a ground fault on the system, meaning that the
PLC's ground could have been connected to a power source non-
isolated from the power supply of the PC. When the devices are
connected the ground potential difference between the PC and the PLC
cause a large current to flow through the resistor and cause it to
burn out. Usually you just need to replace the resistor and check
the power source to ensure some isolation.

In the most recent situation it appears the problem (as far as we can tell) was that someone put a lock washer under the mounting screws and one of them penetrated the solder mask and made contact with a trace.  I believe it is a ground trace -- it's the one nearest to the mounting hole next to U12, on the component side of the board.

So if I'm analyzing this correctly the PLC's ground was tied to the machine's earth through the screw (since our chassis is tied to earth). However, our machine uses power from a 208 outlet while the PC is plugged into a seperate 110 outlet.  So it seems there was a difference in ground potentials between the PC and the machine (a seperate matter we need to address).

Does this make sense?

12
Technical support / Replace 888+ with 2424+
« on: October 29, 2006, 12:52:52 PM »
Should it be possible to use a T100MD2424+ in place of a T100MD888+ without concern?  Judging from the specs on your site it appears the 2424+ is a superset of the 888+ with the only differences being the additional I/O, the use of terminals for analog I/O rather than D-sub (a good thing), and the addition of the MCR input.

Any hidden gotchas I should be aware of?  Maybe differences in available PWM frequencies or stepper frequencies?

13
Technical support / Max input power voltage
« on: September 07, 2006, 09:54:47 AM »
A customer in Mexico is having trouble with our machine.  Our field technician is measuring 30-32V at the power input for the PLC thanks to the horrible AC provided by the factory (AC line voltage measuring nearly 300V on what's supposed to be 220)!.

Could this amount of excessive DC voltage damage the PLC?

14
Technical support / Firmware uploader DLL?
« on: August 21, 2006, 09:19:30 AM »
How hard would it be to provide a DLL version of the TL5 Uploader program?  It would be great to give our HMI software the ability to update the PLCs in our machines rather than relying on the customer or field service rep to select the proper COM ports in the Uploader when doing upgrades (we use two T100MD888+ PLCs in our machines).

Just a thought.

15
Technical support / Program recovery?
« on: July 31, 2006, 10:37:36 AM »
I have a feeling I already know the answer to this but I figured I should ask anyway.  Is there any way to recover a program from a PLC in the event you lose the source code?

Pages: [1] 2 3 4