Siemens fc10 to compare 2 strings

  • Thread starter Thread starter Stanley_Smith
  • Start date Start date
  • Tags Tags
    Compare Strings
AI Thread Summary
The discussion revolves around using Siemens FC10 to compare two 9-byte strings from scanned box codes to determine if a box is "good." The user has defined string1 and string2 in DB98, but encounters an issue where the comparison always returns true, regardless of the scanned box. It is noted that the first character of string2 starts at a different byte than expected, which may be causing the problem. Clarification on the terms DB98, FC10, and VAT is requested to facilitate troubleshooting. The user seeks suggestions to resolve the comparison issue effectively.
Stanley_Smith
Messages
16
Reaction score
0
Hi,

I'm scanning a code from each box to compare and see if the box scanned is a "good" box. The whole code is about 21 bytes and I only want to compare 9 bytes since those 9 bytes differentiate between the 2 types of box. I created (2) 9-byte strings in DB98, string1[9] starts at 0.0 and string2[9] starts at 12.00.
I entered 9 "good" characters in the initial value column for string2. String 1's value will be read from the scanner. FC10 is used to compare the two strings. The problem is that the results are always equal(true) doesn't matter which boxes was scanned ! In the VAT table, string2's first character which is 0 actually starts at db98.dbb 14, not 12. According to Siemens help file, the first byte in a string is to show maximum length of the string, the second byte shows the actual string length. HELP ! is there any suggestion on how to correctly solve my problem? Thank you
 
Engineering news on Phys.org
Since nobody has replied yet, I'm guessing that none of us are familiar with the system and tools that you are using. I'd still like to help, so if you can provide a pointer or explain what DB98, FC10, VAT, etc. pertain to, perhaps I can be of help.
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top