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

Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
155
Hello all! So I have one project with a S7-1214 and a MTP1500 "Project1" and one project with another S7-1214 "Project2". Both of these PLC:s need...
Replies
6
Views
95
Hello, i am using profibus as communication between plc and fanuc arm. I can easily send inputs from plc to arm, but i can't monitor any outputs...
Replies
0
Views
44
Hello, I need to write the following program in Ladder language, but I could not integrate the Fibonacci sequence into the ladder. Can you help...
Replies
22
Views
461
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
285
Back
Top Bottom