dzrong Posted December 23, 2010 Share Posted December 23, 2010 Sometimes I want to save I variable in pmac but I don't want to save other P variable or Programs,especially after when I turned the PID using PmacTuningPro2. How to achieve that? Thanks Link to comment Share on other sites More sharing options...
Sina.Sattari Posted December 23, 2010 Share Posted December 23, 2010 The only way I can think of is to backup the variables which you don't want to be changed before Tuning and in desired state and restore them after the task is completed. Regards, Link to comment Share on other sites More sharing options...
Richard Naddaf Posted December 23, 2010 Share Posted December 23, 2010 When the PMACTuningPro2 is closed, it should delete any programs or PLCs it had created. Otherwise, they have to be deleted manually (or added to header download file) before issuing a Save (i.e. open plc 29 clear close, open prog 30 clear close). Regarding P and Q variables, they can be either reloaded from the editor or re-initialized (to the desired values) in a startup PLC. If no particular values are to be maintained, a P0..8191=0, and similarly Q0..8191=0 can be issued from editor/PLC. In this manner, a Save can be safely issued. Note that the .. syntax is an online command notation. Example: //=====================// Open PLC 1 Clear CMD"P1..8191=0 Q1..8191=0" ; user code added here Dis PLC 1 Close //=====================// Link to comment Share on other sites More sharing options...
Recommended Posts