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 - dwight.arrants@tstc.edu

Pages: [1]
1
I'm not claiming to be an "expert" either.
If you can program in Python, VB isn't more difficult (just a little different).

You can write code that is triggered by event linked to the placement of of the part.
Placing each part would trigger a unique event (1 of 8).
Set a variable to indicate "part X placed"
If the other 7 parts have been placed. Then change the screen color

If you change the color of each part as it is placed then that could be your "placed" variable.
Biggest problem will be determining which event you will trigger from.


2
Support Questions / Serial port sharing RSLinx, AdvancedHMI
« on: July 21, 2021, 12:33:21 PM »
Hi All,
I'm not sure if this should be simple and I am just missing something, or if this is impossible, or someplace in between.
I am trying to use RXLinx and AdvancedHMI at the same time.
Setup:
1 PC with 1 serial port (COM1) running both AdvancedHMI and RSLinx.
1 Micrologix 1100, also with 1 serial port.

I am using com0com to create virtual serial port pairs.
Trying to use hub4com to share the one physical port.

Following allows RSLinx to function properly, but AdvancedHMI not working:
(sub PLC for GPS)
===============================
You have a GPS device that connected to your computer via a phisical COM1
port and you'd like to handle its data by two GPS applications. You can
do it this way:

  1. With the com0com's Setup Command Prompt create COM5<->CNCB0 and
     COM6<->CNCB1 virtual COM port pairs (see com0com's ReadMe.txt for
     more info). For example:

       command> install 0 PortName=COM5 -
       command> install 1 PortName=COM6 -

  2. Start the hub4com.exe on COM1, CNCB0 and CNCB1 ports:

       hub4com \\.\COM1 \\.\CNCB0 \\.\CNCB1

     It will send data received from COM1 port to CNCB0 and CNCB1 ports
     and it will send data received from CNCB0 port to COM1 port.

  3. Start the GPS applications on COM5 and COM6 ports.
=========================
Anyone fluent in hub4com, or have another approach?

Thanks,



3
Tips & Tricks / Problem / fix connecting to Micrologix 1100
« on: April 21, 2021, 05:49:57 PM »
I had a working and tested HMI that just stopped communicating. Looked all over for logical solution.
What worked:
Use SerialDF1forSLCMicroCom1 default settings seem to work
    This makes no sense, but it looks like the lights and switches can become disconnected from the driver
    Fix was to:
         add a second driver (any driver you are going to remove again)
         remove existing driver
         add the existing driver back
         remove the second driver
         set ComComponent for each component back to the original driver
         So basically no change, except now it works.

4
Thank you sir,
Yes, it was operator error at another location in the code I wrote.

5
I guess this is a total newbie question, but it seems to me the HMI should have 3 states for the motor

On, Off, and duh I don't know the PLC won't talk to me.
When the PLC is online and running everything works.

Problem is when the PLC is turned off, the color of the motor on the HMI changes. the color change gives the impression that the HMI is still in control.

6
Using a pair (start / stop) of momentary button switches to start / stop motor

Looks like the motor goes green when start command is sent, not when motor is actually running.
When the PLC is offline, I get an error message, but the color still changes.

Is there a way to read the real state (on/off) of the motor instead of the intended state?

What I am asking is can I stop the motor changing colors when the PLC is offline?

Pages: [1]