Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


ORSO2001 last won the day on November 14 2018

ORSO2001 had the most liked content!

Community Reputation

4 Neutral

About ORSO2001

  • Rank
  • Birthday 10/21/1975

Contact Methods

  • Skype

Profile Information

  • Gender

Recent Profile Visitors

1,985 profile views
  1. ORSO2001

    SQL query results

    hi Saragani, thanks for the answer...yes obviously you are right...thinking better I understood that I am asking to search if some element has a specific ID and the answer is "no one item has this ID"...then the request is done in correct way and also the answer is back in the correct format...thanks
  2. ORSO2001

    SQL query results

    dear All, ok...now that I better checked I saw that in the query with SELECT command its struct has description string about the result...when I ask for a not existing ID I have "Number of records 0"...I was expecting an "exception" error but ok...this is managed in this way.
  3. ORSO2001

    SQL query results

    Dear All, I am starting for the first time to work with DB in a server PC using SQL (SQL server) query. I am using the SQL example...all works fine...I do the connection...I create the table...I am able to insert, update, get and cancel the "info" with this DB...what I saw and I don't understood is that if I send a query to have some information refered at a specific ID (...WHERE employeID =?) and this ID is not present in the DB the query result, BIT about query success, is turned as "1" ...I was expecting that the "fail BIT" arise !? Maybe this is correct, sorry I don't know deeply this matter...can someone confirm? thanks
  4. ORSO2001

    Edit Ladder in Online mode

    Hi Shaun, if you are "online" with your PLC you can only modify the value of the tags (set/reset bit, insert a number or change a string)...not the ladder flow/logic. to modify the ladder flow/logic you must be "offline" and after you have to download the program...if you modify only logic and not HMI you can select the "download logic only"...after the compilation of the program the system, berfore the phisically download, will ask about a reset or not of the actual value of the tags(retained or not is the same)...I never do this with a system in working mode, I have always set the system in "off", so I don't know what really happen with the phisical output.
  5. ORSO2001

    Compare tag data current vs previous scan

    Hi Marco, I am not sure about what you need...but you can use a second variable to store the value, afer that you done all that you need, or previously, then you will have an ActualValue and an OldValue
  6. ORSO2001

    Modbus TCP, check forwarded data

    Agree... couldn't agree more... obviously...me too
  7. ORSO2001

    Modbus TCP, check forwarded data

    dears...sorry if I am wasting your time...but I have an update...seems that they (second supplier) have found what they were doing wrong...I don't know what exactly they have do but from yesteday the system is working without problems...and I am happy! thanks
  8. ORSO2001

    Modbus TCP, check forwarded data

    hi dierkens, thanks again for your answer...now I have 5 minute of "relax" to try to explain better what I have. to be clear ...when the phisical installation was started my PLC was ready, program done, test field simulation etc, to be connected with the master...obviously I wrote a data exchange document with all explanation...also a step by step example... was who had to program the master side that was not ready...and develloped the program at customer site! at the time I have connect the PLC with the PC where I created an easy program in C# to test...to show at the end customer that all work fine...and it was. after a few the second supplier told me that they were having problem because they never used Modbus protocol (but was the agreement from the beginning!?)...I explained again what they had to do...after a few they told me "now is ok"....great I thoug...but now they come back telling me that sometimes the command is not catch...in my PLC I have a "debug page" where I can see the amount of the "success" and "failed" about the TCP side...the fail are always "0" and the "success" increased every time. in their PLC they don't manage the exception or the data send error or don't check "my" registers about alarms or wrongs commands....I know because the customer user don't found these when the system seems not working...and they (second supplier) are not telling me how they are creating the data string that are sending... yes I can use something like a "sniffer" but I was thinking if the buffer of the data entry was available!?
  9. ORSO2001

    Modbus TCP, check forwarded data

    hi dierkens thanks for answer....maybe my explanation was not clear...my PLC works as a slave...i create some registers (read, write) for a master (that is not mine)...who has created the master program is saying me that the comunications is not working...but if i use a program test to check my registers all works fine...i need to know what they are passing me.
  10. Hi All, I'm using the UniStream as a slave connected by Modbus TCP. Is there a way to know/check the forwarded data, by the Master, byte to byte? thanks
  11. ORSO2001

    Finding prefix of a string

    Hi JotaPey, have you tried the Find Substring function block?....field A the string where you want navigate; field B the substring to search; field C the starting point to search in the main string; field D the result....for this last a positive result means that the substring was found....negative result means that the primary string doesn't contain the secondary string...you can navigate in your DTI until find what you want.
  12. ORSO2001

    Buffer to tag sems doesn't work

    ok..what I were doing was a control of the "expected bytes in input" in the same row using to function block "equal" and "not equal" then a ramification of the row...if equal i checked the buffer[5] if not equal I did a store as 8 (because 8 byte is alwayse the lenght of the function 0x03)....I splited these in two individual rows...and now works.
  13. ORSO2001

    Buffer to tag sems doesn't work

    Hi Ausman, no delay ...what I done is check the amount of incomming bytes and every 8 bytes, that are in the RS485, using an EQUAL block, pass at an buffer array using the COM RX function...store this last buffer array in a struct that has the same buffer and store in a DTI...increase the row where I store and restart; this works (the communication between master and slave start and stop on my command)...I repeat that if I check, passed, store this every 8 byte all works fine...but I want to split row by row the request and the answer...what is not working is the "store" of a part of buffer in a tag...I have had an idea about the next test that I can do...later I will try and I will update the topic.
  14. ORSO2001

    Program simulation without PLC online

    hi camillende, yes...that I know is the only way.
  15. Dear All, I am having a strange issue...I try to explain, I am checking the serial communication between a master and a slave (modbus rtu...like a sniffer) and I am using the Unistream to catch the exchanged data...at the beginning, as first test, I record every 10 bytes and save the buffer in a DTI...and all has works fine...now I want to take the exact request/answer between master and slave....then the first record is checking the 8 bytes...the data will be, for example, 1-3-0-216-0-3-134-56 (the CRC is not calculated...I wrote only as example)...then I want check the position 5 in the buffer (3) to know how many bytes will be the answer...in this case will be (3 *2)+2 =11 bytes...I am using the function block buffer to tag to store the buffer[5] and do the calculation...I tried to save the specific buffer position to a single tag and all the buffer in an array...both UINT8 and UINT16 but...but this never works....in the position C of the function block is wrote that if the end tag has not enough space the function will not execute...but I don't think that is the problem...what cna be the cause? What I am wrong?