Sign in to follow this  
Followers 0
jolin_soos

Syswin Erasing Cpm2c Memory

6 posts in this topic

Hi, Those last days, i was doing some windows programming to access my cpm2c thru cx-server Lite to change data in the plc from a pc application. After some problems , probably becaused i put some wrong stuff into some memory place i dont know (i m very new to PLCs ... ) , i STUPIDLY decided to erase my PLC memory from SYSWIN to upload againt the swp program. This was clearly stupid as i spent 3 days simply watching the syswin program to know what to access from the pc, and being scared of messing the memory up as i m a newbie into PLC. So, i erased the whole memory from SYSWIN (stupid as i didnt know what memory zone i was erasing) marking all the checkboxes in the "erase dialog". Of course, i now cant connect to the plc anymore from SYSWIN, and memroy is nicely "clear". So, if anybody could help me, telling me how stupid i have been working to late on thing i dont know and messing the things up as the very last "try" of the day :/. I am actually looking for a way to connect and upload the swp automat program to make the things work ... again ... if it s still possible. What should i do now ?... Thx for any help/informations. Sorry for annoying you, i m a win32 programmer trying to do some PLC stuff ... and well failing ?:o|...

Share this post


Link to post
Share on other sites
How are you connected to the CPM2C, peripheral port or RS232 port. The small connector on the front of the processor will support both. You need to check the Programming Manual: http://forums.mrplc.com/index.php?autocom=downloads&showfile=483 The first section of this manual covers the PLC setup. Review the settings for RS232 port and Peripheral port. Communication may need to be setup as if all setup values are zero (0). Hope this will help.

Share this post


Link to post
Share on other sites
yes RS232 trhu CIF01 ... i blanked the whole memory i guess cause i ve checked all the memory zone (... really stupid and shame for a programmer :) ). I must stpo working late. I ve downloaded several docs inlcuding the one you gave me, and i will have a close look to it... it s just that i dont know much things in PLCs .. so have to start from scratch. Nice start :) thx for your anwser.

Share this post


Link to post
Share on other sites
ok, some feedback about my "mistake" : - Reading the manual and checking the swp program i had before in the PLC, i ve seen that default communication speed of the CPM2C is 9600 baud once memory erased (default), as in the swp prg, the com speed was 19200. So connectiong to the plc from syswin was finally "as simple" as changing speed from 19200 to 9600. - Then i ve uploaded the swp prg, and the PLC is now back to its normal working except that i have still a clear data memory, ie all the prg params are set to 0 (zero). - So, and thats what i was wondering before truning crazy and erasing everthing yesterday, i m still wondering "where" are those original params, if there is another file "they" (manufacturer of the machine) didnt give me, so that i can load the default setting of the machine. I don't know if i will be able to set the whole memory data like it was before ... and not sure what i exactly have to put in memory (prg data + ? + ?). Or is it somewhere in the swp file, and i didnt know exactly what to check... i m still reading / searching. thx a lot gtsuport for your infos/help. Edited by jolin_soos

Share this post


Link to post
Share on other sites
Normally, Omron software does NOT store memory data with the program file. With Syswin there could be a ".ddm" file that contains the memory data. You can access this file (if it exists) by going to the pull down menus, Editors/Data Display Editor. You can also access and modify the memory areas of the plc in this editor. Make sure to save the data from this screen before you go off line with the plc. To know what addresses are used in the program, and which may need to be modified, you can go to Print and print a Cross Reference report. This will list all the memory addresses that are used in the program. I hope this will help.

Share this post


Link to post
Share on other sites
Many thx. I did a prg save (.swp) before crashing the memory, and i was looking for a global save of the memory before that. So i did a .dsb save, but that isnt was i needed it seems. Anyway, i have emailed the manufacturer so that they send me all the data file they use (they previously only sent me the .swp). I know things better now on SYSWIN. Too bad i didnt find out how to save the whole memory, but as the manufacturer had previously given me only a .swp, i thought more or less, all was there. I had seen the data editor before erasing, but i thought it had to be saved in the .swp (i should have cliked the save as button to check the file extension). SYSWIN help isnt really "great", probably because it's a bit old now... but that's my entire fault anyway. Good to see i may get my PLC memory back and i can now have a much clearer view of how are the things in it. Wait and see what they send me. thx.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0