Reference to UDT

Grzesiuk

Member
Join Date
Dec 2018
Location
Ukraine
Posts
24
Hello!

I have a question how to reference to specific bits or bytes in UDT.
I have a global DB in which I have a STRUCT composed of bools, ints, words and one UDT. From that UDT I want to move 3 chars into another DB. Is is possible to use BLKMOV for that? Whenever I try I always have a type conflict. Or is there other method to move these specific 3 chars from UDT to another DB?
 
Hello!

I have a question how to reference to specific bits or bytes in UDT.
I have a global DB in which I have a STRUCT composed of bools, ints, words and one UDT. From that UDT I want to move 3 chars into another DB. Is is possible to use BLKMOV for that? Whenever I try I always have a type conflict. Or is there other method to move these specific 3 chars from UDT to another DB?

Move the individual components of the instance of the UDT you create using the CPY. I'm assuming you created a new instance of the UDT since you are trying to use it.

Try MOV which is on page 455 in this PDF:
https://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1756-rm003_-en-p.pdf
 
I apologize for not to mention that I am using S7-300.
With more details - I have DB. In this DB I am interested in address DBB77,78,79 (which are the CHAR, parts of UDT in STRUCT). I want to move these chars to another DB. So I want to use BLKMOV, and as input of BLKMOV I point to that addres as "DB_Name".STRUCT_Name.UDT_Name.BYTE_Name BYTE 3 (since i want 3 bytes to transfer). And that is not working giving me syntax. I also tried with pointers, still not working. Could you please show me, what am I doing wrong?
 
Of course I can use three MOVE instruction. I figured out that my addressing was wrong, since I was not pointing to DBX but to DBB. Correct version should be P#DBx.DBXx.x BYTE x, then there is no need to use 3 MOVE instr but one BLKMOV.
Thanks for the help.
 

Similar Topics

I have never used FT View but I have a customer that is referencing a bunch of my AOI instances that are on their PLC. This is causing problems...
Replies
7
Views
1,770
Hi all, I have several FB's which each perform different control functions for a drive unit. There is a large amount of drive data which is...
Replies
8
Views
8,096
Hello guys, I am new to this forum and have some problems with my PowerFlex755 EENET frequency inverter. I want to do a point to point...
Replies
0
Views
50
I have a FactoryTalk View Se project, Is it possible to export Direct Reference tags to edit in a CSV file or Excel? I know I can export HMI...
Replies
1
Views
267
Hey, I'm trying to do the following, I have some experience with Citect but can't seem to figure this out. I/O Tag: BoxPos1_ProdNum (Data Type...
Replies
0
Views
556
Back
Top Bottom