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

Need TIA PORTAL 14.0 and i want to take a upload from plc. I can't download from anywhere. please give me download link. thanks
Replies
3
Views
38
Hi! What is the way to convert the code from the Codesys code to the Tia Portal? Regards, WK
Replies
0
Views
37
Hey Guys, I am using a siemens IPC with a siemens RFID setup (Part numbers below). I am looking to create a screen where I can add/remove users...
Replies
13
Views
180
i am using profibus, i want to insert a hexadecimal word or byte to 4 byte like in the phot but i don't know how
Replies
6
Views
161
Hello guys, I recently bought s7 1200 DC/DC/DC to practice programming siemens. upon powering up a device, I saw red light on error and maint...
Replies
3
Views
224
Back
Top Bottom