Ravi
-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Ravi
-
-
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 operation
-
Dear Joe
Thank you
For the Guidance
-
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}
-
Dear Joe
Good Morning to you
I am Waiting for Reply for above as well
Sample Serial Communication Program with how to use Checksum in both Send & Receive Situations may be SUM8 /CRC.
Thanks
-
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)}
-
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)}
-
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
-
Also Please send me sample program for PCOM Protocol Both in Binary/ASCII Format On RS 485 Link
-
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.
Dear Joe Can You Please Re Post The File "RS232COMMANDJT1.vlp" or on anravindranatha@yahoo.com
-
Hi Ausman
Good Morning , I Tried to Download "PID Codes" & "PIDall.pdf" but files does not exists on Form page.
Kindly request you to forward them on anravindranatha@yahoo.com & an.ravindranatha@gmail.com
Regards
Read and Find Data_Tables
in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Posted
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
test with herculs_R1.vlp