tashinz

MrPLC Member
  • Content count

    394
  • Joined

  • Last visited

Posts posted by tashinz


  1. if it is cx-supervisor plus than you can connect directly to sql server database (using odbc - checkout the user's manual section Databases) and use cx-s script commands to read/write data to database. i recomend to use sql server's function to insert a timestamp into record in the moment of writing to database e.g. make a field date_time of datetime type and in Default value or binding property put (getdate()) function. regards

  2. It's basically the same as you would write fins send & fins recieve for pc. first, you create fins command (see manual), what you want to do. second, open udp port (or tcp) - use available predefined function blocks in cx-programmer - _ETN011_SOCKET_UdpOpen. third, issue a send command, again using function block - _ETN015_SOCKET_UdpSend. we used this to send some measurements via gprs network to SCADA computer (the goal was to minimize traffic due to high cost of gprs transfer at that time). you can trigger this send in plc like any other command. regards.

  3. try something like this: Since system points $Date and $Time contains forbidden characters for Windows file name (like : or /) you should create textual point with date and time. I use the following: MyYear = ValueToText($Year) MyMonth = ValueToText($Month) IF ($Month < 10) THEN MyMonth = "0" + MyMonth ENDIF MyDay = ValueToText($DayOfMonth) IF ($DayOfMonth < 10) THEN MyDay = "0" + MyDay ENDIF MyHour = ValueToText($Hour) IF ($Hour < 10) THEN MyHour = "0" + MyHour ENDIF MyMinute = ValueToText($Minute) IF ($Minute < 10) THEN MyMinute = "0" + MyMinute ENDIF MySecond = ValueToText($Second) IF ($Second < 10) THEN MySecond = "0" + MySecond ENDIF 'Adding 0 is for name of the reports to have dates and times with same number of characters so windows sort report files accordingly. ReportName = "Report_" + MyYear + "-" + MyMonth + "-" + MyDay +"-" + MyHour+ "-" + MyMinute + "-" + MySecond + ".html" ReportTemplate = "c:\Test.html" GenReport_Flag = GenerateReport(ReportTemplate, $ProjectPath + "\" + ReportName) If you use VBScript then add strings using & instead of +. Regards

  4. checkout the manual W393-E1-14+CJ-Series+OperManual.pdf from OMRON industrial europe site. there you can find detailed info on this fatal error. in short: 80F0 is program error (page 502) and details you can find on page 510. regards

  5. Hi, you should use [] brackets instead (), checkout the manual you can find directly from cx-p, in help -> Manual -> Function block part / Structured text part. one problem I had here. since i am using serbian (latin) keyboard layout, must use right alt + F or G to get [ or ] brackets inserted. this won't work in structured text editor of cx-p. since you probably use spanish layout you could be encountering a similar problem. so then I change layout to english (us) or, more simpler, insert [] to the notepad and then copy it to the cx-p. Bye

  6. try also not deal with individual settings of the serial port. just choose host link or toolbus and its speed. on the pc side set the same protocol and the same speed and all that do from cx-programmer. do not change anything from windows device manager. if you have change something to the serial ports, reset it to default. regards.

  7. watch for the length of the REAL addresses, they need to be 32bit i.e. 2 words - check that for the multiplier and the result address in the *F instruction. also try to use Address reference tool to check whether you overwrite these addresses from somewhere else in the program. regards

  8. it would be great if installation of cx-supervisor would come with opc server for cx-supervisor. this is a standard option in other scada packages. this would allow for some opc client / server to access data directly from cx-supervisor without the need for accessing the actual omron plc.

  9. Right click on the project name in cx-programmers workspace window (default name is NewProject), select properties and in a displayed dialog click new file if you want to create new cdm file, or select to choose existing cdm file. close the dialog. And then, when you create symbols there is an option Link the definition to the project's CX-Server file which you should check if you want the symbol to appear in cdm file. this is possible for global symbols only. you can use Excel to bulk edit this property if you have already created a lot of symbols. regards

  10. I've just discovered my project is made for system version 8.22, but my ns8 v02 hardware is 8.0. can someone upload ns firmware 8.22? in download section i can see only 8.21 version. many thanx

  11. hmm very strange. i have never encoutered anything similar, but, with cx-s 1.25 and cx-server below version 2 i have had problems such as the cx-s point (input, 1 second refresh rate) was not refreshed but when point is renamed, cx-s recompiled, it works. regarding setting points to zero on startup, you should check your scripts if you're setting your text points to zero somewhere.