12/3/2014 5:41 PM | |
Posts: 19 Rating: (0) |
Thank you for the Link but I can see the processing of data in SCL there. Can you share some help manual for using array in LAD? Can't really get some good help on web for that -------------------- New subject after splitting from Reading Real Time RPM using proximity Sensor and S7-1200. |
Last edited by: Min_Moderator at: 12/8/2014 9:40 AMSplitted |
|
12/7/2014 4:36 PM | |
Posts: 19 Rating: (0) |
Can you share the example with real memory address please? I am trying to write MW0[0] but this is an error. Thank you |
12/7/2014 5:09 PM | |
Posts: 5225 Rating: (1197) |
My dear fellow - welcome back. I hope to show you how to declare arrays. I wish to do it over two posts - please be patient with me as the 2nd one will follow shortly. Attached is a page I have compiled for you from the System Manual of the S7-1200 PLC. You would make me very happy if you report later to us that you have read Chapter 4 of the system manual [link]. Another must read is the "Easy Book" [link]. I hope to return shortly. w |
This contribution was helpful to1 thankful Users |
12/7/2014 5:46 PM | |
Posts: 5225 Rating: (1197) |
..now for a step by step explaination using pictures. The attached ZIP can be unzipped to reveal several JPEG files. Each file has a number corresponding to the step that can be followed to create and then later write coding for an array. The example code has no value other to demonstrate the format that can be used. I hope this is of value to someone. Feedback / Suggestions / Thoughts / ThankYou / Stars will be welcomed. Greetings. w AttachmentVisual Clue_Step by step Array creation.zip (1390 Downloads) |
This contribution was helpful to5 thankful Users |
12/8/2014 8:16 AM | |
Posts: 19 Rating: (0) |
Thank you for the support. How can the same be implemented in OB 1 directly using thr array as actual memory adress? |
12/8/2014 8:50 AM | |
Posts: 5225 Rating: (1197) |
Hi there, I am very disappointed to get your reply. Please read the extract I have compiled for you a few posts ago (Extract_S7-1200 System Manual_Array data type.jpg ). The text is even highlighted: Arrays can be created in the block interface editors for OB, FC, FB, and DB. Arrays can not be created in the M-flag region. You can only do this in memory of code blocks. If you follow the step-by-step guide as is then you will have what you need. Alternatively I recommend you follow my step by step guide - with the difference you create the array in a DB block. A DB is user created memory that you can use in other code blocks. The array in the DB can be used in OB1 - if that is what you want. The format will be.. {DB name}.{Name of array}[index number] Example: "CodeBlock_DB".MyArray[2] See if this mean anything to you. w |
This contribution was helpful to2 thankful Users |
Follow us on