4/1/2006 10:09 PM | |
Joined: 3/27/2006 Last visit: 10/11/2024 Posts: 90 Rating: (13) |
Sure. Here is a simple "brute-force" method of detecting a change in an integer setpoint such as would be used for a timer setpoint. Only one rung of logic is used for each setpoint. The example program contains ladder-logic code for five setpoints, VW0 - VW8. You can read the help for the SMB31 to learn how to set up the eeprom write for other types of data (byte or double-word). It is all about whether you set or reset the first two bits insmb31. To test the code you could load the program and then change the setpoints. Next, download a blank data block to the PLC. Third, go online and change the setpoints. Fourth, upload the online data block. After savingthe online data block to your PG/PC, examine it offline. You should find the setpoint values, indicating the logic wrote to the EEPROM. (The data will belisted in bytes in hex format, not easy to see at first.) AttachmentEEPROM.zip (758 Downloads) |
Last edited by: Mojo at: 4/1/2006 10:12 PM"I never let a cowboy make the coffee." |
|
Follow us on