tashinz

MrPLC Member
  • Content count

    394
  • Joined

  • Last visited

Posts posted by tashinz


  1. You can use PLC-NS cable and connect your NS5 to PLC's RS232 but: use cx-programmer to set NT-Link 1:N (38400 or 115200-default) since that is the default settings of serial port on NS. Now, when DIP Switch 5 is OFF then PLC's RS232 is NT-Link. then you communicate to NS. if DIP switch 5 is ON then PLC's RS232 is Toolbus. Then you connect to plc from cx-programmer and program the plc. this way you don't need to get peripherial cable but you should allways plug in and out cables if you want to change program in plc. To avoid this, get CS1W-CN226 or CN626 peripherial cable and connect to peripherial port and program the plc with cx-programer (or use CX-Supervisor to run scada app) while the PLC-NS communication is working continouosly through RS232. hope i am helping.

  2. Sure, since the DIP switch 5 ON means: ignore what is setup to the CPU's Rs232 port and use Toolbus, baud rate autodetect. You have the correct cable since you've managed to connect with sysway, DIP switch 5 OFF. Generaly: if you lift up the door on the CPU where the DIP switches are you will see the following text: 4 - OFF Auto ON setup, 5 - OFF setup ON Auto. Setup means that the port parameters will be as it is setup from the programming device e.g. cx-programmer (using settings). Auto means that the port settings are allways Toolbus, and baud rate set in client app e.g. cx-programmer (so when you check baud rate autodetect, port speed will be the one selected in cx-programmer). IF you want to use sysway on peripherial port you will setup in settngs from cx-programmer Host Link and speed, then you will put DIP switch 4 ON (that is use setup not auto). conclusion: peripherial port AND DIP 4 OFF = RS232 port AND DIP 5 ON RS232 port AND DIP 5 OFF = peripherial AND DIP 4 ON. I hope the things are clearer now.

  3. A is 65 dec or 41 hex. e is 101 dec or 65 hex. so probably everything is ok just one program uses hexadecimal notationm (omron) and other decimal (excel). just look at any ascii table on the internet (google it) and everything will be clear. regards

  4. don't know why, but you obviously use the Dinamic Hand Cursors Enabled option from Project -> Runtime Settings -> Startup Conditions... in the cx-supervisor developer window. I've used it once but it slowed runtime very much for some reason. never used it since. try to uncheck this option?

  5. when the DIP switch 5 in ON then use toolbus, choose correct pc port, set the baud rate, check baud rate autodetect. when DIP switch 5 is OFF you can use sysway but only if it is set on that port (it is default). but if you can't know port's paratmeters before you connect use trick mentioned above.

  6. Hi PdL and dank06, It didn't work (if the cable is correct and you chose right port on PC) beacause the settings of the RS232 port on the CPU unit, when the DIP switch 5 is ON is Toolbus and baud rate you can choose. RS232 port with DIP switch 5 ON is behaving the same as Peripherial port with DIP switch 4 OFF and vice versa. Hostlink is default setting in the sense it is pre-defined, but when changed new settings are retained. By putting DIP switch 5 to ON we say don't use setup, use automatic (look DIP switch description on CPU's little door). Automatic means Toolbus, baud rate autodetect. So, DIP switch 5 to ON use programming cable as in manual, choose toolbus, correct PC port, baud rate set, go online and change whatever. you can try with auto online feature also. Inform us was it succesfull. regards to all

  7. I don't think it's good when comm led turn on when you connect the cable. is that the case? you download W393_E1_08_CJ1_Operation.pdf manual from omron download section on this site on page 641 you have pin out, not sure then one you have is completely right. then you do what Sleepy Wombat said, choose tolbus and speed. that should work. regards.

  8. scottmurphy, can you upload here the elg and ebk (error log and error backup) files from cx-supervisor's runtime folder (or uel and ueb files if it's 1.3 and later). maybe something we can dig out f there. you should do what PdL said, try to start minimum of your application, and then add features you implemented later to see when the crash will occur. we are distributing cx-s 2.0 already here in serbia, i think for two months now, omron even told us that cx-s 1.3 can be purchased only if something is really important, how to say. please, keep us informed regarding crashes of your application. this was happenning not so often in my experience and I solved all this crashes with minor changes in the project. hope this is the case with you also. regards to all

  9. hey, the latest version is 1.33 (1), there is an update on omron download section for registered users. went through the list of changes, didn't see any new comparing to 1.32 (4). error files don't tell much. This mfc42u.dll file, I've searched it on my laptop, there is two versions, one in system32 folder and other in CX-Designer's folder (also in WinSxS never mind). the version in CX-Designer's folder in newer. I can not tell you how this is important though. Try to install the latest CX-Server 3.0.0.21 it comes with cx-one 2.03 or 2.01 with updates. I had a similar problem once: when click on text with display page action, the page is open - it is a pop up screen with text with two actions. one close page (closes this pop up) and another is Execute Script with one line OpenLogView(bla bla). when click on it Data Log Viewer opens and generates an error similar to yours and crashes the whole application (with stupid send error report, dont send). this sometimes happens and sometimes not. I solved this by doing following: I erased close page action and add another line in script, after OpenLogView(bla bla) Close(pop up) after this it never crashed again. one would say that this is solved internaly (queueing methods of object). Or maybe uninstall whole omron software, wipe the registry of omron and cx, install again the latest versions. also, look up on the internet what services of winxp you can disable, it can help, who knows. regards

  10. since the support for certain type of plc comes from cx-server (or not? or both, client app and cx-server) maybe you should install the latest cx-server 3.0.2.1, and use cx-p 6.1. did not try this but who knows. I did not encounter any bugs so far in cx-p 7.1 but, honest should be, i didn't use this kind of intructions yet. regards

  11. first, when you install the usb to serial converter, you should check on which port it is installed (right click my computer, manage, device manager, ports), then in cx-programmer choose that port. since it is cpm2a i think you should choose sysmac way 9600 or 19200, not sure. anyway try that and also toolbus.

  12. use object Numeral DisplayInput, address D0. then use right click, repeat, set vertical number of fields (let it be 15) and spacing, address offset 1. then again do that, but set horizontal number 14, address offset 16 (previosu column has from d0 to d14). you can use the object table (not data block table its for reciepes). I am not sure if you wanted this at all btw.

  13. try to avoid macros since it keeps application simpler and easier to maintain. i suppose it is alternate type of on/off button. you can do that in plc program, or you can use the following macro attached to when changing numeral in macro section of thumbwheel switch object: $B100=0; WRITECMEM([sERIALA:00100.00],$B100,1); where 100.00 is the bit your on/off button writes. SERIALA is the name of the plc host attached to the port A i.e. that is the name of the plc (it can be different if you use ethernet e.g.) $B100 is temporary bit fron ns memory. you can see the help for writecmem command in macro editor. hope this is helpful. regards.

  14. Hi PdL, nothing in a near future. altough I was close coming to amsterdam at the end of august to regular Omron IDS meeting, but someone else is going instead of me. me, have a lot of commisionings here. too bad for beers though. there will be another chance, I am sure. Or for you to come to Serbia. so much to see here, I assure you. regards

  15. some days before, when the V5 of NS-Designer was about to be released, I read somewhere in the omron secret papers that this functionality will be implemented in next V5 version. it never came though. or this was a dream. that is how my dreams look like, btw.

  16. hi, maybe I am missing something, but how can you specify in the macro that there is a double word? the syntax is READCMEM($HW100, [sERIALA:DM00100], 2); if you want to read DM100 double word you read DM100 2 words, that is the last parameter of the command. then, $HW100 gets value of DM00100 and $HW101 of DM00101, so if you want to copy the DM100 e.g. DINT you have then to play with $HW100 and $HW101. If I am in error please anyone, let me know. Regarding time out error, try to separate these two operations in two successive macros, reading and then writing. regards