In coming back to working with SM I am still unsure about why I can not directly access a contact in my PLC code.
Lets say I have a rung with a contact that if I turn it on it allows for some function block (algorithm) to run. Now I can hard toggle this in the code on and off (it is not used any where else in the code). It is an HR bit, the SM user manual says I can use H bits. But alas I go to write to it (as a BOOL) and it does not toggle the bit on.
Why would it be that some contacts I am able to write to while others I am not? Does it matter if it is a DM,HR,CIO address?
I finally realized what is going on. In CX-Programmer you can not reference the direct coil or contact. Lucky my company has some code in place that I can access the touch screen controls. Thank you for all the help!
The address 700.03 is my normally open(NO) contact. There is also a safety unlock (NO contact), which I also tried to make write able in SM(you have to be able to turn it on). But this also does not want to turn on.
Hope that explains my thought process a bit. From what you have said I am unsure on how to “use program tags on the PLC, and connect them to the outputs.”
Don’t I have to know what address the output is mapped to in the PLC (via the CX-Programmer)?