Jump to content

thecarb

Members
  • Content count

    23
  • Joined

  • Last visited

Community Reputation

0 Neutral

About thecarb

  • Rank
    Member

Recent Profile Visitors

761 profile views
  1. I made something derived from the example "V130_send_strings_in_sequence". I put "SB3 1 sec pulse"s positive transition contact to trigger communication for queries. PLC sends commands and reads answers every 1 second. For the ON/OFF commands I use the negative transition of SB3, so these two groups (queries and command) won't disturb each other. I don't know if it is the best way but it works. One problem is when PLC triggers ON or OFF command, it happens in 1 second not immediately. Second problem is, it takes 4 seconds to take all the information of the queries. The last problem is, device sends an answer to ON/OFF commands, I don't add those to Scan protocol. So when PLC send a command to device, it cannot recognise its answer and shows an error on RS232 protocol's status. (If I add those to scan protocol, those answers message index number won't be the same with command send protocol. Can PLC recognise those messages in this case?)
  2. Joe, Thank you very much for your great help. The one I made sets 16 MBs starting from the MB20 to the binary values of the given hex value. It works! And my last question (I hope) is, how can I send and scan different messages? For example, I made a FB for reading temperatures and another one for reading pressure value from the device. However, just the first one works, second one won't work and sets RS232 status MI to 1, which indicates a general error. I tried to write these into different subroutines but it didn't help. Always the first send&scan works but the second doesn't work. I need to send 4 different commands and read their responses. How can I do this?
  3. Yes I made it. The problem was the programming USB cable. When it is connected, PLC doesn't send or receive any data from RS232 (COM1). Now it is working. But I have some questions. Will there be a problem if program needs to send ON command while PLC is reading temperature values? As PLC will automatically send ON command according to other system parameters, I don't know what will happen if ON command will be triggered while PLC is reading temperatures from the device. On the other hand, how can I change the ASCII hex to binary? Device sends 4 digit ASCII hex to binary and seperate every bits to 16 different MIs. And also when I tried to add one more send and scan protocol, plc doesn't send and scan the message. It only runs for the first send&scan. Read Status bits Command with checksum and carriage return = $STA3504<cr> Response: $STA,status bits,<crc-16><cr> The status bits are contained in a four character field that is the ASCII hex equivalent of a 16 bit word. For example, a status bit field of "0301" is equivalent to a binary '0000001100000001". The left most character is the MSbit. Example response $STA,0301,2ED1<cr> corresponds to binary 0000001100000001.
  4. I made the connection with Terminal program and it worked normally. I have attached a print screen of it. I just needed to add a $ sign before the command, otherwise it doesn't send the right command. I have also send all commands to set it ON and read the other variables. There was no problem. I have created a Vision program file. Could you please take a look at it? To RUN the device, I need to send $ON177CF<cr> command to the device from the PLC. So when we touch to the button on the screen, it should send that command to the device.
  5. Hi Joe, Actually, COM INIT is connected to a SB2 as a direct contact. As SB2 is active just for 1 cycle, I believe this is right. If you could take a look at the "Protocol Send" image and the examples of the device, could you say am I doing right?
  6. @DanT, Thanks for your answer, however I have tried different things with examples but couldn't make it right. @All Let me explain the connection first. There is a RJ11 socket on V700 with 6 pins. My device has a DB9 connector but it has just active 3 pins. So I made a connection as attached. V700's DIP switch settings are as factory settings, which is set for RS232. Are these steps right till now? Device's book says that device doesn't send unsolicited messages, it only responds to commands from a host. And as I wasn't sure that I can send commands, I just tried to send ON command so I could see if I could do that when it starts. I couldn't get any results. Here is the initializing of COM1 port. Pls see "init.png" file. Here is the ON command send ladder that I made. Pls see "sendONcommand.png" file. And please see CommandStructures and CommandsON files for the example and explanation of that Command from the Device's book. Could you please let me know where am I doing wrong?
  7. Hi all, I want to use a V700 and a device which also use RS232 connection protocol. There are some datas that should be read and controlling of ON/OFF status of the device. However, this will be the first time that I will use RS232 communication. How can I program this? For example, there is a command that I need to use below. I need to read those values and seperate the temperatures to different MI's. I believe I succeed to initialise communication port but not really sure. $TEA: Read all temperatures Command with checksum and carriage return = $TEAA4B9<cr> Response: $TEA,T1,T2,T3,T4,<crc-16><cr> T1 through T4 are internal temperatures in degrees C. T1 = Temperature 1 T2 = Temperature 2 T3 = Temperature 3 T4 is inactive (returns “000”). The temperature fields are always 3 characters long and are rounded to the nearest degree. Temperatures less than 100 °C have leading zeroes. Example: $TEA,086,040,031,000,3798<cr> corresponding to T1 = 86°C, T2 = 40°C, T3 = 31°C and where 3798 is the checksum and <cr> is the carriage return.
  8. I just added TankLevelLOW inverted contact to the outputs and solved this problem. @hotwires My question to you is, I will remove that Vector Fill function for normal use, right? And again thank you very much for your help.
  9. Thank you very much for your help, Joe Tauser and your great effort "hotwires". It works great in "Automatic Mode", except when all the tanks are empty. If they all are empty, it opens all tank outputs but they should be closed at that situation. I tried to add an inverted contact but didn't help. I'm trying to find a solution for it.
  10. Hi Joe, Thanks for your effort. However, when I turn on Automatic Mode, it opens all outputs. Tanks empty/full situations are not applicable. Thanks for your effort. However,
  11. Hi Joe, I have uploaded the file to "WeTransfer" folder. Please find it attached. https://we.tl/dspvOgEbT0 Thanks in advance.
  12. hi guys, is there anybody to help me? thanks in advance.
  13. Hi Flex727, Please see my answers below. 1) I want anybody to use ManualMode when AutomaticMode is active. If I use a positive transition, somebody can open Manual Mode when Automatic Mode is active. 2) That thread is a part of another logic, I didn't see a problem on placing it in a ladder, but if you say that will cause issues, I can move it to another ladder. 3) This is the same as #1. These inverted contacts restricts switching between automatic/manual mode. 4) If Automatic Mode is active, you cannot use Manual mode. There are also some other threads in different ladders for the other 2 tanks.
  14. Hi all, I'm working on a project, where we use Vision V570 and V200-E1B. I wrote some codes in order to automize the switching of 3 tanks regarding their level. I wrote something like below. Here is the logic; When operator resets the situation of the tank, tank status turns to full, when tanks pressure goes below a certain level, its status goes to "empty" and PLC switches to the other full tanks. The problem is, if I reset first tank's status when second or third tank is working, it switches directly to the first tank, before waiting that active tank to be empty. So this causes some tanks stays unused. How can we fix this? PLC should wait the active tank to be empty and after that it should switch to the other one. Thanks in advance for your help.
  15. I mean 0 - 20 mili V. Yes I configured the input as 0-10 V. Oxygen transducer has 2 wires, so you don't need to feed this, it gives 0-20 mV output according to O2 composition. As we have sold that sytem with Jazz PLC, I don't have the chance to try it. The value was "0" when I connect oxygen transducer with other 4-20 mA pressure transmitters.
×