Tia Portal 17 Split instruction

steu

Member
Join Date
Aug 2006
Location
Milan
Posts
17
Good morning


I have a 1500 CPU with a RS232 card.
I receive fom serial card a string like:


123.45 1457.23 456.34 892.34


I need to split the string in array of string with a value for each string of the array.


To do this I thought to use a split instruction using a space like separator, I'm not able to use this instruction the Help on line is not well explained.
Can someone write down an example with the parameter of FC?
thank you in advance
 
... To do this I thought to use a split instruction using a space like separator, I'm not able to use this instruction the Help on line is not well explained.
Can someone write down an example with the parameter of FC?
Yes; see below.

OP will need to adapt this example, i.e. use the delimiting (SPLIT.RecSeparator) and terminating (SPLIT.EndSeparator) character suited for their own process.

An alternative to the Equals comparison instruction (-]==[-) would be to always write a 0 into the [SPLIT.Position] parameter (misc.start_pos in the example) just before the SPLIT instruction on each scan, so the SPLIT instruction will perform the splitting on every scan.
splitter_01.png
 

Similar Topics

Hi All, Someone at work has put a PLC system on my desk, that's just been taken off an idle production line. He said "It's an S7 PLC. We don't...
Replies
10
Views
247
Hi guys , I'm new with Allen Bradley, but I have experience with Tia portal (s7 1200 ,s7 1500) I want to convert my project from Tia portal to...
Replies
2
Views
203
Hi, I have had problem with upgrading some projects from v16 to v18. I tried it on 3 diffrent computers. I want to post this so that anyone that...
Replies
3
Views
167
Hello gentlemen, Im working on a small project on TIA Portal, about establishing a Modbus TCP connection between my ET200SP plc and a socomec...
Replies
12
Views
310
I am currently am in a PLC class and need urgent help on how the ladder logic would be laid out. I understand how to get the traffic lights to...
Replies
19
Views
446
Back
Top Bottom