Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by ORSO2001

  1. Hi all, a customer ask to have a double access control...one by "username/password" and also a fingerprint control...for the first no problem...about the second (fingerprint) some suggestion for the hardware? I checked but I found or cheap model that can be connected/used with arduino/raspberry or something "higher level" but that use an owner software for PC connection. thanks
  2. Hi Meetto, I don't know exactly what you have to do but I think that each valve will be a "binary immage" item that will contain the ON/open and OFF/close status. also for this item, in its property window, in the "action attributes" you will add the SET action for these two bit...one is to open the pop up menu...second is to enable the action of this pop up menu for the specifici valve. in the ladder you will have a row for each valve that include...a contact for the selected valve, a contact for the ON command, the ON command, a reset for the pop up menu bit, a reset for the selection of the valve and a reset for the ON command. the same for the OFF command.
  3. Hi Meetto, at each valve you can couple 2 Bits...one is to enable (pop up) the ON/OFF window, and this bit will be common for each valve, the second bit, that is unique for the specific valve, will let you set it by the ON/OFF command.
  4. ok...I think that I tried all the possible register...and I don't found any that can be releated with the ID...as I wrote I am quite sure that is a fixed ID because these two devices is a part of a "static" system that always manage these as device 49 and only one can be present in the system...also are present others static ID like 50, 51 , 52 etc. said this, unfortunately, the way with one or more Vision is not accepted by the owner of the project...I have to use only one PLC + HMI. said this (2)...I have to buy a module to add the serial ports...at this point can I buy the UAC.02RS2, that has 2xRS232, and connet each port with a RS232-485 converter?...or some problems can arise?
  5. Eh Eh...sorry...my brain was off...I meant: connect the unistream PLC with some devices and also with a Vision PLC...and the Vision with others devices... the slaves can works or at 9600 or at 19200 baud rate...
  6. Hi Ausman, thanks for the answer...I will check if a register contain the ID 49 and if I can change this...but I am quite sure that is not present and that the ID49 is "fixed inside" by its program. You are right...I didn't know that the RS232 of the 02RSC has a "problem"...thanks to have highlight this...also the UAC-02RS2 (2 x RS232) has problem? so you are suggesting connect the unistream PLC with soresting me device and also vith a Vision PLC...this last will be connected with the others devices...uhm can be interesting...but if possible, in this case, I prefer have only one PLC. I will update this topic after the check about the ID register.
  7. Dear All, for my next project I have to manage a ModBus RTU data exchange with 57 devices by RS485 port...but the system can be enlarged in the future...where the Unistream works as master. two of these devices has the same ID 49 and it is fixed and is not possible to change...in the others can be selected. one port is already present in the PLC; I know that exist the external module (UAC-02RSC) to have +1 RS485 and +1 RS232...but it would be nice have a module to have +2 RS485...exist a way to have this withou buy 2 x UAC-02RSC to have 3 x RS485? thanks PS: can be a solution connect a converter RS232/RS485 with the module UAC-02RSC or some problems can arise?
  8. hi Interroga, the local varialbles are "created" and "destroyed" at each PLC cycle...you can't use a local variable to store a value and use this later...you have to use a variable defined in the global scope...or save in a DT this value and recal this value, with the specific function, then if necessary you can upload the value in a local variable and use this to do what you want. I don't know which experience that you have but is the same as in C or C++ or other programs languages...
  9. Hi Gonzalo, that I know is not possible, at run time or in late binding, decide the length of an array or of a DT...you have to do this at compile time. What you can do is store (append) in a SD file, or in a SQL table, the DT and recall these.
  10. 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
  11. 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.
  12. 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
  13. 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.
  14. 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
  15. Agree... couldn't agree more... obviously...me too
  16. 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
  17. 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!?
  18. 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.
  19. 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
  20. 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.
  21. 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.
  22. 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.
  23. hi camillende, yes...that I know is the only way.
  24. 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?
  25. Hi camillende, that I know is not possible; let me say that also if could be possible I still prefere check the program with a real PLC and I/O modules...in this way you will have not surprise during the real installation. Let me add that the unistream software is free...other brands don't share free software and you have to pay for this...the cost of a unitronics PLC+HMI+I/O modules is less than the cost of other software... this is what I done when I started to learn how a PLC works (checked what the markert offer as PLCs and for each PLC what was available) ... I found Unitronics that has free software, great forum, excellent service support (I tried this after)...and to be honest I still be sadisfied...I still have on my desk the first PLC that I bought (is become one of the family)...and every job that I done, when installed at customer site, had has no surprise for me. Said this...can I have an extra discount !? 😀
  • Create New...