TIA Portal Help

cyoung120

Member
Join Date
Jul 2013
Location
OH
Posts
92
Hi Guys,
I was hoping someone would be able to point me in the right direction. I am using TIA Portal V14 SP1. I have a Data Type that is made up of several different types (ie Dint,String,ect). Each of these data types is a record. What I would like to do is have an array of x records, index them down, and move the newest into the [0] spot. In Allen-Bradley land I would do it something similar to this:


XIC(trigger)ONS(OneShots.15)COP(MyDataType[8],MyDataType[9],10)COP(NewRecord,MyDataType[0],1);




How do I replicate this in TIA Portal?
Any hints would be greatly appreciated.



Thanks
 
I'm not a TIA Portal expert by any stretch, but a hazy memory somewhere in the recesses of my brain is gesturing suggestively at the "Block Move" instruction (BLK_MOVE, maybe?). If it's not quite what you're after, it might at least point you in the right direction.
 
In STL would be something like this:

A trigger
FP helpvariable
MOV_BLK(MydataType[0], MydataType[1], 10)
L newRecord
T MyDataType[0]

FP is the rising edge one shot. FN is the lowering edge one shot (if you need it).



In TIA Portal, I believe they moved to MOVE_BLK (or potentially MOV_BLK_VARIANT depending on data type).
 
Hi guys, back again with another quick question. Is there a block in TIA Portal v14 SP1 similar to the Totalizer block in AB FBD? Or would I just be better off rolling my own based off samples at a timed interval.
Thanks again.
 

Similar Topics

Good, Code Totalizer: IF ( Hour = 23) and ( Minute = 59) and ( Second = 59) THEN totalizerDay_previous : = totalizerDay; totalizerDay= 0; End_IF...
Replies
8
Views
1,515
Hi all, I am starting a project with motion control and currently have a few stepper motors that I want to get working with a S7-1200 CPU. The...
Replies
15
Views
4,101
Hi I have a machine that has 1500 cpu program is v15:1 I have the program from the Oem and the tia portal software v15.1 ? I have set the laptop...
Replies
2
Views
1,854
Hello, Now here is my problem guys. I weigh my weight and i wait for the slow_fill_required_weight to be lesser than my slow fill limit which is...
Replies
7
Views
1,786
Hi all. I'm modifying a system that's created in Tia Portal ver 14. I've changed the PLC program and added screens to the HMI sections. Regarding...
Replies
16
Views
6,082
Back
Top Bottom