tashinz

MrPLC Member
  • Content count

    394
  • Joined

  • Last visited

Everything posted by tashinz

  1. Change IP address in NS

    I think it's not possible from runtime, I first thought there are system memory variables for IP address but there aren't (NQ has that). So, if there is a way that would be the news for me. maybe the best way for you is to put ns and plc behind a router, and then never change the plc and ns ip addresses, only the router settings.
  2. Email with Cx-Supervisor

    Try myomron? http://www.myomron.com/index.php?action=kb&article=45 regards
  3. ERROR: '#STR2UINT$'

    A complete list of features supported by the particular version of cpu I am not aware where it can be found, but some of it one can find in cs cj programming manual and instruction reference manual. But I think the most convenient way is to check the cx-programmer's help for a particular command where at the end of every article you can find the Supported PLCs link to a table with all commands. this is for ladder instructions. for ST you'll get there buy pressing F1 in structure text editor and find Structured Text Functions, where you'll get the table. regards
  4. ERROR: '#STR2UINT$'

    CX-Programmer's compiler is set to latest cpu's unit version so it checks program according to features supported by that unit version. when you connect to plc it can detect the cpu unit version. But you can change the cpu unit version compiler is using: go to menu PLC - > Program Check Options and in that window you can change amongst other things the unit version of cpu. then the compiler will show errors offline also. remedy for this is to buy newer plc or to solve your conversion in ladder. what you used, is supported from cpu unit version 4.0. regards
  5. cx-supervisor data with timestamp format

    you can extract info from A351, 352 etc words in scada and create a textual point containing a date and time information. you can create it in datetime format SQL Server uses (something like 2013-12-09 11:45:23 but I am not sure if this depends on regional settings - i think not since this is I suppose some standard. also, I think in SQL Server's datetime format there are miliseconds). this way you can treat later in SQL statements field Date_Time as datetime type. you can do that in plc also - create a string with date and time. for plc or scada conversion try this: (* this is ST code you can put this in FB. similar is for SCADA *) MySecond := MOD(WORD_BCD_TO_UINT (mmss), 100); (* mmss is A351 *) MyMinute := WORD_BCD_TO_UINT (mmss) / 100; MyHour := MOD(WORD_BCD_TO_UINT (DDHH), 100); (* DDHH is A352 *) MyDay := WORD_BCD_TO_UINT (DDHH) / 100; MyMonth := MOD( WORD_BCD_TO_UINT (YYMM), 100); (* YYMM is A353 *) MyYear := WORD_BCD_TO_UINT (YYMM) / 100 + 2000; Date_Time := UINT_TO_STRING(MyYear) + '-' + UINT_TO_STRING(MyMonth) + '-' + UINT_TO_STRING(MyDay) + ' ' + UINT_TO_STRING(MyHour) + ':' + UINT_TO_STRING(MyMinute) + ':' + UINT_TO_STRING(MySecond); (* end of code *) Where Date_Time is in/out since editor doesn't allow string type as only output: Date_Time STRING EXTERNAL 0 20 Watch out for data format, A351 ... A353 are UINT_BCD therefore the conversions. since you use A351...A353 for creating your timestamps for alarms I suppose they too are of UINT_BCD. regards
  6. cx-supervisor data with timestamp format

    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
  7. CJ2 sending information

    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.
  8. How can PLC read data from HMI?

    create a script on a project level that is triggered on every change of e.g. $W100 which contains the ID. then in script use WRITECMEM command to write to plc's desired memory location.
  9. Problem with GenerateReport

    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
  10. Read Data from PLC using FINS and C

    Try manual Ethernet Units - Construction of Applications? I recall there is a sample code in C to send FINS messages particularly read and write D zone of Omron plc.
  11. Activation Problem - cx Supervisor

    check out the manual, there is a topic about failing to update registry - got to do with priviliges of the logged in user in windows. use administrator user or do the changes in registry as described in user manual of cx-supervisor
  12. Sysmac CJ1M-CPU13 Fatal Error

    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
  13. CX-Supervisor won't load

    checkout in project editor whether Display page upon run is selected. regards
  14. REAL VS REAL POINTER

    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
  15. Data block Group Setting

    try to copy directly from excel where you can fast edit data to Memory window in cx-programmer, to the desired memory area of the plc. regards
  16. Trend Graph - to start and stop on bit status

    you can use the desired bit as trigger for on condition script (on a project level). in a script use ClearLogFile, StartLogging and StopLogging commands for what you wanna do. regards
  17. Upload failed

    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.
  18. NT to NS series program conversion request.

    there is nothing you can do without cx-designer.
  19. NQ Designer Simulation Tool

    Which version of NQ-Desinger do you use? it should be V2.0 as it is the latest. I haven't come up with this kind of problem though in both V1.3 and V2.0. And which windows do you use? regards
  20. Floating Point Multiply OMRON PLC

    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
  21. > 2GB CompactFlash card on CJ1 or CS1

    Very good info man. Didn't come to my mind to create a smaller partition. so we put our efforts in obtaining a smaller CF. this is good.
  22. CX-Supervisor and Windows 7

    Good job PdL and Omron cx-s team. i didn't see this support for validation is coming, great. Hmm, a lots of cool new features, fantastic.
  23. CX-Supervisor and Windows 7

    Great news PdL, thanx for the effort! i'm waiting to deliver this first project of cx-s 3 on windows 7, so i'll wait few more days.
  24. CX-Supervisor and Windows 7

    still no trace from cx-s 3.1 update. anyone having some info about the issue?
  25. CX-Supervisor improvement requests

    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.