Rajesh Anand Show full post »
Rajesh Anand
Thanks for the earlier response.

I'm using Unipi with Raspberry pi 3b for a project.

1. What are the registers which are available in the OpenPLC? (Like usually D0, D2 for registers and M0, M1 for the internal relay etc. in a Mitsubishi PLC)
2. How do I use the registers in OpenPLC for storing data and manipulating them? 
Quote 0 0
thiagoralves
1. Check http://www.openplcproject.com/scada

2. Declare a variable located in one of the locations mentioned in the link above, then use the variable in your program.
Quote 0 0
Rajesh Anand
Okay. In the program, I used the variable %MW0 and %MW1 with values and uploaded it. In the Radzio Modbus master simulator, I couldn't see the value of variables which I used.
But when im able to read and write coils through the simulator. I'm not able to read and write integer variables in the master simulator.

Is there something that I'm missing? Suggestions would be useful
Quote 0 0
thiagoralves
Make sure you select “Holding Registers” from the drop down menu at the spreadsheet window, and that your start address is 1024 (as per table in the website). You will see your variables in there. Double click a row to change its value.
Quote 0 0
Rajesh Anand
Yeah im able to read the registers (Didn't notice the address). I can do the changes to register and coils which are not currently used by the program but not for the ones which im using in program.

Will we be able to write to the holding registers or coils which is currently used in the program (I'm using %MW0, %MW1 and %QX0.0 in the program which is currently running in the openplc). I double tapped and gave different values but its not reflecting in the register.
Quote 0 0
thiagoralves
This is because your program is writing the original values back every time (remember that PLC programs are cyclic). 
Quote 0 0