CobiaCruiser Posted November 10, 2020 Report Posted November 10, 2020 So I am working on a project where I am using "XFER" command and I am trying to move some words from a place into location: global_variable_1[Variable2]."Struct_Name"[INT1].member1. The problem is that whenever I try to make "INT1" into a tag variable with data type integer. It does not work. I think this is considered a 2D array? Is this even possible? Also I did see other posts that sounded similar, but I could not make a direct connection. I have some other PLC's in my facility that seem to be able to do this with Sysmac Studio, but not with CJ2M and cx-programmer. Is this possible to do what I want and if not is there a work around?
Crossbow Posted November 10, 2020 Report Posted November 10, 2020 That's not a 2D array, it's an array inside a structure. But I am more familiar with Sysmac, not sure if CJ2M had this option or not. Why is Struct_Name inside quotes?
CobiaCruiser Posted November 10, 2020 Author Report Posted November 10, 2020 No particular reason why I put Struct_Name in quotes. I was trying to set it aside more. Looking at it now it appears very unnecessary.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now