Jump to content

Ravi

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Ravi

  1. 5 hours ago, Joe Tauser said:

    @Ravi - I generally don't write programs from scratch for people on the forum.  My philosophy has always been you learn by doing.

    That said, I will generally help a user who's made an honest stab at making a program work by editing it for them.  If you upload the program you're working on I and others on the forum will be happy to download it and have a look at your work.

    Make sure you tell us which version of Visilogic you're using.

    Joe T.

    Dear Joe

    Here is the code Written for above

    Logic written  to Find row containing Invoice Number which Already exists in DataTable or not

    Ex If ML10 = contains Invoice No=40625

    ML9 and ML8 Should retrun the no How many times it occured in Data Table that is

    0 for No Row contains 40625 ,1 For 1 Row Contains

    but i am Getting Some other number may be 3 or 4 

    and some times 

    0  if it exists

    request your help to diagnose the cause

     

    image.png.963750c1e6dde8a6cfb3bd0696463f9c.png

    image.png.913fd72464cf5e59a73ad0b8ea311da8.png

    image.png.b04a23f971456f8ef6198aa92f19ce75.png

     

    test with herculs_R1.vlpimage.png.96a656f78c7e94da2e229480d13ea790.png

  2. On 11/10/2016 at 9:18 PM, Joe Tauser said:

    Data tables are not really a database, but you can search for a value in a column.  Look in the Help on "Data Table Find"

    Joe T.

    Dear Joe,

    Can I get a Sample coding for Data Table find  in Visi Logic.

    My requirement is  as follows.

    I get Invoice number from Scanner.

    I should search for this number either  Exists in Data Table or Not.

    If record does not exists in Data table  then I should proceed further operation

    The DataTable  is as attached

    The Invoice number Stored in Column 2 ,and it is unique

    Please send me Sample Vlp File to My email ID/Whatsup

    "anravindranatha@yahoo.com",My whatsup no is +91-9945323817

    else i should reject the operaimage.png.f15e3dc5edf37e8fc4f28e9479b2a27a.pngtion

  3. Dear Joy

    Good Morning

    Thanks for the Reply,

    OK I Got it.

    and How to Calculate SUM 8 Check SUM For The String

    Example : I sent "9901029999FF" From Terminal Program Simulator & Received IN V700 PLC in HEX Format as follows

    MI1310=3939;MI1311=3130;MI1312=3230;MI1313=3939;MI1314=3939; & MI1315=4646;

    Should I Split Each Byte & SUM it, Like{39+39+31+30+32+30+39+39+39+39+46+46},If Yes How Should I Split into Separate Bytes in Visilogic Ladder

    OR

    Should I SUM all My Integer Variables Like  {MI1310+MI1311+MI1312+MI1313+MI1314+MI1315=MI1316}

  4. Dear Joe

    Good Morning to you

    I got to Implement RS485 Communication Using FB Protocol /PCOM Protocol in Binary Format for the following

    Receive and Send Messages

    Command to Receive

     { address of the machine: command : MSB of Command :LSB of Command: checksum}

    STX><UnitID><CommandCode><Command parameters><CheckSum><ETX>

    {byte1:byte2:byte3:byte4:byte5}

    Command to Send

    {Address Of the M/C +Echo of Command :MSB:LSB:%POWER:Temperature:FAULT/Healthy:Request To Respond:Power Applied}

    {byte1+byte2+byte3+byte4+(byte5+byte2:byte6)+(byte7+byte8)+(byte9+byte10)+(byte11)+(byte12+byte13)}

  5. 13 hours ago, Joe Tauser said:

    I didn't have any problem downloading from the above link.  

     What exactly are you looking for?

    Joe T.

    Dear Joe

    Good Morning to you

    I Got to Implement RS485 Communication Using FB Protocol /PCOM Protocol in Binary Format for the following Messages

    Command to Receive

     { address of the machine: command : MSB of Command :LSB of Command: checksum}

    STX><UnitID><CommandCode><Command parameters><CheckSum><ETX>

    {byte1:byte2:byte3:byte4:byte5}

    Command to Send

    {Address Of the M/C +Echo of Command :MSB:LSB:%POWER:Temperature:FAULT/Healthy:Request To Respond:Power Applied}

    {byte1+byte2+byte3+byte4+(byte5+byte2:byte6)+(byte7+byte8)+(byte9+byte10)+(byte11)+(byte12+byte13)}

  6. 12 hours ago, Joe Tauser said:

    I didn't have any problem downloading from the above link.  

     What exactly are you looking for?

    Joe T.

    Dear Joe Good Morning to you.

    Thanks for reply

    I Got To Implement RS485 Communication Using FB Protocol or PCOM Protocol  Binary Format for the following Receive and send Messages

    Command to Receive

     { <address of the machine>: <command> : <MSB of Command> :<LSB of Command>: <checksum>}

    STX><UnitID><CommandCode><Command parameters><CheckSum><ETX>

    {byte1:byte2:byte3:byte4:byte5}

    Command to Send

    {<Address Of the M/C>:<Echo of Command> :<MSBof Command>:<LSB of Command>:<%POWER>:<Temperature>:<FAULT/Healthy>:<Request To Respond>:<Power Applied>:CheckSum>}

    {STX><UnitID><Echo of CommandCode><Command parameters><CheckSum><ETX>

    {byte1+byte2+byte3+byte4+(byte5+byte2:byte6)+(byte7+byte8)+(byte9+byte10)+(byte11)+(byte12+byte13)} 

    I Kindly Request a Sample Visilogic Programs for FB Protocol and PCOM Protocol.

    Thanks

     

     

  7. On ‎11‎/‎21‎/‎2017 at 11:11 AM, Joe Tauser said:

    Unlike actual Unitronics support employees, I don't have a selection of all PLC models to test on.  So I had to size the graphics down to the PLC I have handy.  Don't move the graphics around until it's working so I can easily help.

    I tested the program again seems to be working on my end.  Notice the value in MI 1302 - Index of Message.  MI 1302 = 0 is valid - it means it received the first message.  The block starts counting at 0.  Look at the numbers in the purple column of the Protocol Scan block config window.  When it goes to -1 it means the block didn't understand what was sent and it didn't match any of the defined message formats.  But it did scan.  MB 1302 will not come on if it doesn't find a legitimate message.  And when it does it only stays on for one scan.

    I added MB 0 to net 5 - Session complete memory.  It comes on when the PLC receives a legal message.  You have to press Clear Screen to reset it.

    I changed net 4 to look for message index = 0, not 1.  I think it works the way you expect now.

    You can reset MI 1302 to 0 and see for yourself if you send an improperly formatted message such as "ABC", as opposed to the properly formatted "#ABC*".   That's what the STX and the ETX check boxes are for.

    Play with it some more to get a better feel for the block.  It's not the simplest thing in the world.

    Joe T.

    RS232COMMAND JT 1.vlp

    Dear Joe Can You Please Re Post The File "RS232COMMANDJT1.vlp" or on anravindranatha@yahoo.com

×
×
  • Create New...