AdvancedHMI Software

General Category => Support Questions => Topic started by: cls on September 08, 2015, 10:01:52 AM

Title: Check PLC is in Remote run mode
Post by: cls on September 08, 2015, 10:01:52 AM
Hi

I'm don't know anything technical about the PLC's, but I'm using AdvancedHMI to log some data from our production (I'm just the programmer). We are using AllenBradley PLC's (EthernetIPforSLCMicroCom).
How do I check to see if the key on the PLC (physical key) is in REM-position (instead of RUN or PROG)?

Best Regards
Claus
Title: Re: Check PLC is in Remote run mode
Post by: Archie on September 08, 2015, 10:07:44 AM
On a SLC500 I think you can read the addresses S:1/0 through S:1/4

I do not know the exact values that will tell you what, but they should somehow indicate key switch position,
Title: Re: Check PLC is in Remote run mode
Post by: Archie on September 08, 2015, 10:15:56 AM
You may be able to get a more exact answer on the www.plctalk.net forum
Title: Re: Check PLC is in Remote run mode
Post by: Bob on December 30, 2015, 05:53:54 PM
Archie, do you know how we can detect Run/Program mode on CompactLogix ?
I found some GSV instructions - Status, and some predefined tags like @Status, @Mode, @IsPresent but I don't know how to use them with AdvancedHMI. I tried to read them directly but it doesn't work.
Title: Re: Check PLC is in Remote run mode
Post by: Darrell on December 30, 2015, 06:23:05 PM
Ive done this in Micrologix and SLC500
Title: Re: Check PLC is in Remote run mode
Post by: BLFTech on December 30, 2015, 10:01:18 PM
You will need to use the GSV instruction to get the values out of the controller. In the GSV instruction you will use the CONTROLLERDEVICE as the class name and then use Status as the Attribute Name. You can store the results in an array you create with a name of your choice. I have attached a picture to show the bit numbers that you can access to get the results you need.
Title: Re: Check PLC is in Remote run mode
Post by: Bob on January 02, 2016, 02:51:53 AM
Thank you for the answers. BLFTech, your answers is currently the only possible as far as I know. However, it seems like a workaround. For example RsLogix somehow reads the mode of the controller without GSV instructions and creating a temporary tag. I guess this is a part of the CIP protocol which is not publicly available. It would be great if Archie research that functionality and add it to his communication driver.