jholstein
How do I access the LED_BUILTIN and SWITCH_BUILTIN from OpenPLC Editor?

I want the switch to act like an EStop and shut down outputs as if the switch ends the program, and I'd like to blink the LED as a status indicator so the user knows the PLC is running.
Reply 0 0
thiagoralves
Access to the local pins are currently not implemented. I’ll take a look at this today, it should be fairly easy to implement 
Reply 0 0
thiagoralves
I've just added support for the MRK header on the P1AM, including the built-in LED and toggle switch. Here is the final mapping:
/******************PINOUT CONFIGURATION***********************
Digital In:  31, 0, 1, 2, 3, 4              (%IX0.0 - %IX0.5)
Digital Out: 32, 6, 7, 11, 12, 13, 14       (%QX0.0 - %QX0.6)
Analog In: A1, A2, A5, A6                   (%IW0 - %IW3)
Analog Out: A0                              (%QW0 - %QW0)

Notes:
P1AM Toggle Switch (digital pin 31) mapped to %IX0.0
P1AM LED (digital pin 32) mapped to %QX0.0
**************************************************************/
Reply 0 0
jholstein
You are da man!! Thank you so much!!!

Question - will these addresses conflict with Modbus?
Reply 0 0
thiagoralves
These addresses are in the Modbus range, which means that you can access them using Modbus. 
Reply 0 0
jholstein
Yup! It's working perfectly! Thank you so much! This is awesome!!
Reply 0 0
Reply