4/4/2017 4:26 PM | |
Posts: 24 Rating: (0) |
Hm. Is it a Instance DB or a Shared DB? |
4/4/2017 4:31 PM | |
Posts: 24 Rating: (0) |
Okey, I got it working in a new DB with an BYTE (not an array). Do you know how I can set that variable = ARRAY[0] in my other DB? |
4/4/2017 4:46 PM | |
Joined: 3/14/2008 Last visit: 11/14/2024 Posts: 2130 Rating: (953)
|
It's a shared. An instance DB get's it's values from the FB and you can't modify them. So, if you are to create an SCL source, then all values: VAR_INPUT/OUTPUT/IN_OUT/VAR are listed in the instance DB.
You cannot use Arrays with the S7_m_c. See my first post for the data types that are permitted. I think you have to create an SCL source for that. You will then use the following code, for example: ByteOutput1 :=ARRAY[0]; ByteOutput2 :=ARRAY[1]; etc. This way, you can declare bytes as VAR_OUTPUT which you address your array to. |
If I could help you, you can use the RATE button. Thank you. |
|
This contribution was helpful to1 thankful Users |
Follow us on