Author Topic: Check PLC is in Remote run mode  (Read 4167 times)

cls

  • Newbie
  • *
  • Posts: 5
    • View Profile
Check PLC is in Remote run mode
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Check PLC is in Remote run mode
« Reply #1 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,

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Check PLC is in Remote run mode
« Reply #2 on: September 08, 2015, 10:15:56 AM »
You may be able to get a more exact answer on the www.plctalk.net forum

Bob

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Check PLC is in Remote run mode
« Reply #3 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.

Darrell

  • Full Member
  • ***
  • Posts: 198
  • Electrician / PLC Technician
    • View Profile
Re: Check PLC is in Remote run mode
« Reply #4 on: December 30, 2015, 06:23:05 PM »
Ive done this in Micrologix and SLC500

BLFTech

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • BLF-Tech LLC Website
Re: Check PLC is in Remote run mode
« Reply #5 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.

Bob

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Check PLC is in Remote run mode
« Reply #6 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.