AdvancedHMI Software
General Category => Support Questions => Topic started 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
-
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,
-
You may be able to get a more exact answer on the www.plctalk.net forum
-
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.
-
Ive done this in Micrologix and SLC500
-
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.
-
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.