H
Hi,
I have my recent version of the LPC -Linux Programmable Controller (formerly FreeLC) ready for testing. You can use telnet to connec to it.
I am looking for feedback or suggestions as the design is starting to solidify nicely. The instructions are below. You can download it from
http://claymore.engineer.gvsu.edu/lpcd if you want to install it and play with it on your own machine. Please note that the Java and X-windows programs are broken, but will be fixed in the near future.
Hugh
[email protected]
1. Open another window and type in 'telnet localhost 1237'. This will connect to the LPC. Notice that 'localhost' is the default name for the same machine, but this could also be your machine name or IP number if you have one, or the loopback IP number 127.0.0.1. The last number is
the port number. You will notice this in the '<io>' section of the 'test.plc' file.
2. You can now login to the LPC. Enter 'USER Huffin', you should get an acknowledgement. Then enter 'PASS Puffin', you should be given another
acknowledgement. If access was not granted you must start again from the 'USER Huffin' name. If you can't login, modify the 'passwd' file to
delete the encrypted password for 'Huffin' between the ':' colons, then use 'PASS' for the password. (Note: change this later, or else you will have a security hole.)
3. Use 'HELP' to get a list of commands.
4. Type 'VERSION' to get the version of the LPC. You can also use 'STATUS' to get the LPC state.
5. Use 'IDLE' to put the LPC in idle mode, and 'RUN' to put it back into run mode. If it is not in run mode, then the programs will not be
executed.
6. You can download the contents of the LPC memory by typing 'GET'. Look through to see the values in memory, and the program. (Note: the '<io>' is not working fully yet for 'GET' operations.) Each line of the ladder logic program starts and ends with 'SOR' and 'EOR'. The XIO instruction is a normally closed input, and XIC is a normally open. In this case the value of 'start' is false, so the add operation will not occur, so the value of 'C' should be zero.
7. Upload a memory change using the following steps. The 'PUT' command sets the LPC to receive XML files. The following XML code will set the
value of '1' for that start variable. This should make the add operation occur.
PUT
<plc>
<memory>
<set name="start" value="1"/>
</memory>
</plc>
DONE
8. Use 'GET' to examine the contents of the LPC memory. Now that start is set, the add operation should occur, and the value of 'C' should now
be equal to A+B.
9. Try changing other memory locations this way.
10. When done use 'DISCONNECT' to close the connection. You can reconnect using 'USER' and 'PASS' again.
11. Use 'QUIT' to restart the LPC. The LPC will sleep for 1 minute while old socket connections die, and then restart with the default file.
12. Feel free to play - just use 'QUIT' when you are done to restore it to the default state.
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
I have my recent version of the LPC -Linux Programmable Controller (formerly FreeLC) ready for testing. You can use telnet to connec to it.
I am looking for feedback or suggestions as the design is starting to solidify nicely. The instructions are below. You can download it from
http://claymore.engineer.gvsu.edu/lpcd if you want to install it and play with it on your own machine. Please note that the Java and X-windows programs are broken, but will be fixed in the near future.
Hugh
[email protected]
1. Open another window and type in 'telnet localhost 1237'. This will connect to the LPC. Notice that 'localhost' is the default name for the same machine, but this could also be your machine name or IP number if you have one, or the loopback IP number 127.0.0.1. The last number is
the port number. You will notice this in the '<io>' section of the 'test.plc' file.
2. You can now login to the LPC. Enter 'USER Huffin', you should get an acknowledgement. Then enter 'PASS Puffin', you should be given another
acknowledgement. If access was not granted you must start again from the 'USER Huffin' name. If you can't login, modify the 'passwd' file to
delete the encrypted password for 'Huffin' between the ':' colons, then use 'PASS' for the password. (Note: change this later, or else you will have a security hole.)
3. Use 'HELP' to get a list of commands.
4. Type 'VERSION' to get the version of the LPC. You can also use 'STATUS' to get the LPC state.
5. Use 'IDLE' to put the LPC in idle mode, and 'RUN' to put it back into run mode. If it is not in run mode, then the programs will not be
executed.
6. You can download the contents of the LPC memory by typing 'GET'. Look through to see the values in memory, and the program. (Note: the '<io>' is not working fully yet for 'GET' operations.) Each line of the ladder logic program starts and ends with 'SOR' and 'EOR'. The XIO instruction is a normally closed input, and XIC is a normally open. In this case the value of 'start' is false, so the add operation will not occur, so the value of 'C' should be zero.
7. Upload a memory change using the following steps. The 'PUT' command sets the LPC to receive XML files. The following XML code will set the
value of '1' for that start variable. This should make the add operation occur.
PUT
<plc>
<memory>
<set name="start" value="1"/>
</memory>
</plc>
DONE
8. Use 'GET' to examine the contents of the LPC memory. Now that start is set, the add operation should occur, and the value of 'C' should now
be equal to A+B.
9. Try changing other memory locations this way.
10. When done use 'DISCONNECT' to close the connection. You can reconnect using 'USER' and 'PASS' again.
11. Use 'QUIT' to restart the LPC. The LPC will sleep for 1 minute while old socket connections die, and then restart with the default file.
12. Feel free to play - just use 'QUIT' when you are done to restore it to the default state.
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc