7/29/2014 2:16 PM | |
Posts: 18 Rating: (0) |
Piotr.M, I have an array of real dimensions that are used for servo positioning. i have uploaded my project. The goal i am trying to obtain is we increment a counter after every complete pass or sizing. then for the next sizing the pointer increments to load a new dimension. The dimensions start at Address 490.0 inside db1 which has 2 UDTs in it. An active model and an edit model. So when the input to FC1 is 1 we will load dimensionsal status for dimension[1] then 2 loads [2] and so on. AttachmentDevelopm.zip (153 Downloads) |
7/30/2014 1:28 PM | |
Joined: 6/24/2013 Last visit: 4/26/2024 Posts: 1591 Rating: (409) |
Hi Added another FC which reads all the arrays into its outputs. You need give it array index and it puts data. The AR1 is used because You can modify it easily. Remember: 1. AR1 must be backed up and restored afterwards 2. do not use AR2 in FBs with Multiple Instance Capability because it is used for internal STEP 7 (multiple instance DB calculations) Project attached. Welcome to F4U Corsair world ;-) (S7 is like F4u - ticky and dangerous to fly but when mastered is a deadly weapon ;-) ) AttachmentDevelopm.zip (122 Downloads) |
This contribution was helpful to1 thankful Users |
7/30/2014 3:54 PM | |
Posts: 18 Rating: (0) |
Hello, thanks again Poitr. In the comments of the FC2 call its says it set ENO =1 regardless of the index in or out of range. I do not think that is correct. I tried 15 and the block no longer set ENO =1. I am thinking the CLR should be SET in NW2 but i can add an ErrorID bit that will be =1 when index error. What is the purpose of SLD 3 (shift left doubleword by 3)? I researched why it was done and found this. Link About SLD 3 . Correct me if i am wrong, but is it to load the pointer to a Byte address instead of a bit address? I modified the index value to 0 for sizes 0 to 14. Thanks again. And yes i am aware of the POWER it holds. Took me 2 days to commision a servo my first time now its pretty easy and i can mess with any parameter. I have some background in siemens just not pointers and stl. Trying to learn because it makes for easier portability than LAD. |
Last edited by: wharjm01 at: 7/30/2014 3:57 PM |
|
Follow us on