Search the Community
Showing results for tags 'scan FB'.
Hi everyone! Does anybody have experience with extracting numerical values from SCAN FB? Im communicating between controller and V350 over serial cable. And receive messages like: R+400<CR><LF> R-3000<CR><LF> Using <LF> as ETX. In the SCAN FB i have tried configuring this message in many different ways. But did not have succes. It alwas returns -1 in "Index of received message". Simple fixed length message without variables i can receive just fine. Any ideas? or pointers? Greets Tom
Hi there, I am having some trouble reading variable length numbers in a "Protocol TCP/IP Scan" block. We are receiving a message of the form "-9999999999.999 [Counts16Bit]". Messages can be positive or negative and can contain a variable number of digits, so "9.999 [Counts16Bit]" is also a valid message. I am able to successfully use the scan block with fixed length messages. If I construct a message like "111 [Counts16Bit]0A" where the numeric variable is "Decimal ASCII: Fixed Length", Vector Length = 1, Length = 3, "No Prefix", I can receive any 3 digit number successfully. If I change