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, 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
34
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
20
Views
334
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
273
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
213
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
187
Back
Top Bottom