Search the Community
Showing results for tags 'copy'.
-
Based on what I can google, it is not possible to copy bits over as a block from one variable to another if one of them is a structure? Anything related seems to be someone struggling to access bits and being told to use a union, but that's not what I'm after. I would like to map a structure of equal size to a byte/int/word and vice versa, as shown in the attached image. Thanks!
-
Hello, I have used RSlogix5K for years and I am now creating NX/NJ PLC program. Is there a similar command to 'COP', which can copy ALL the data from a structured variable to either another equivalent structured variable or to a data array of some kind - e.g. a byte array? I thought the MemCopy command might do this but I believe it only handles arrays, not structured vars. Many Thanks Graeme
-
Greetings, I'm here in my home lab trying to acquire a working knowledge of UDT's. I've had to work with them in the past in large existing programs and they were a pain to track down and find out what IO they were really controlling. I have a decent understanding of what they are and I've created several to play with here using my softlogix processor and a digital flex IO rack. My issue starts when i'm trying connect my UDT's to the physical IO. it looks like I cant use a simple move instruction (which would be way too easy and exactly what I need) I have a flex IO 8 point output. Local:1:O.Data[0] I have a UDT consisting of (see attachment) Valve001 Valve001.Out Valve001.Out.OPEN Valve001.Out.CLOSE Valve001.In Valve001.In.OPEN Valve001.In.CLOSED I have a copy instruction set to copy Valve001 to Local:1:O.Data[0] Length 2 that allows the Out.Open and Out.Close UDT's to control bits 0 and 1 of the 8 bit output . .... great. Now I have another UDT setup to control lighting... Door Door.Out.OPEN Door.Out.CLOSE I want to control bits 2 and 3 I make another copy instruction in a line before the original copy instruction that states Copy Door to Local:1:O.Data[0] Length 4 but i'm really just fighting for the same 2 bits that the valve controls.... how can I control bits 2 and 3 for the door/lighting logic using these UDT's? and that's not yet getting into having physical inputs moved/copied to the UDT input bits. thanks!!
- 9 replies
-
- rslogix5000
- flex io
- (and 4 more)
-
Hi, im from brazil and need some help, some days ago i buy a programmer CQM1-PRO01-E beacause one plc CPM2B are deceased, we have another equipaments with this one, but CX programmer not response and de are trying day after day, but with this programmer i want copy and paste the logic from other PLC. Can you help with copy and paste on programmer CQM1?
- 4 replies
-
- omron
- programmer
-
(and 8 more)
Tagged with:
-
Hello Everyone, haven't roamed here for a while. So I'm having a little trouble using the Structure Data Type in Sysmac Studio/NJ. As an independent tool, it is powerful to create user data types, such as Ethernet/IP Tag Link to V680S RFID or any other EIP equipments. And it is way more powerful than the CJ2, since it has the ability for user defined offset, which CJ2 can't do. But the problem is we cannot move/copy the content of the members to any other standard types. For example, I have a structure with 8 BYTE type members. Then I need to send those out via UDP or TCP/IP comms, which Function Block requires BYTE[] data type. Unfortunately data movement instructions such as MemCopy and AryMove didn't work at all to do the job. This was easily done in CJ2 since we can access each memory content directly. Currently I already resort to use customized Functions which will translates the Structure into BYTE[], but that would mean for every different protocols, I need to create a different Function. I have seen this problem posted somewhere in the SS/NJ Improvement Request section, so I wonder has anyone know any update about this matter? Haven't checked the latest update yet (SS v1.14), but I'm certain that in SS v1.13 this feature is still unavailable. Thanks!!!