Industry Online Support
Technical Forum
11/15/2011 5:04 PM | |
Posts: 5225 Rating: (1195) |
Hi there, The set of commands you are looking for is what I know as TABLE COMMANDS from the S7-200 PLC. I do not know of a direct set of commands or a library available. A search is given this LINK as result. It makes use of FieldRead & FieldWrite. [UPDATE 1: this function was used in Step 7 V10.5, not required for V11.0] [UPDATE 1: V11.0 accepts pointer value inside array as used below.] It should be possible to design your own table commands. Something like.. (forgive the rough outline notation) A1 is array [0..9] of INT // primary array (1) INSERT TOP MOVE_BLK( A1[0], 9, A2[1] ) MOVE( value, A2[0] ) MOVE_BLK( A2[0], 10, A1[0] ) ADD( size, 1, size) (2) REMOVE BOTTOM MOVE( 0, A1[size] ) SUB( size, 1, size ) and so on.. |
Last edited by: William B. at: 11/15/2011 5:16 PMUPDATE 1 Last edited by: William B. at: 11/15/2011 5:05 PM |
|
11/15/2011 5:52 PM | |
Posts: 5225 Rating: (1195) |
UPDATE: According to a document "SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool" dated January 2010 there are no equivalent commands in the S7-1200 for the following S7-200 (table) commands: LIFO Last In First Out FIFO First In First Out ATT Add to Table TBL_FIND Table Find Anyone else.. is that still true? Has someone developed a library for such commands yet? I think this is +/- what HOWERLIN requires. |
11/15/2011 6:06 PM | |
Joined: 8/31/2010 Last visit: 11/6/2024 Posts: 1523 Rating: (229) |
Hello HOWERLIN, There are two instruction known as FieldRead and FieldWrite. These will do your work so easily. Get the details on FieldRead and FieldWrite instructions from here |
Last edited by: Ganes10 at: 11/15/2011 6:07 PMLike it? Rate it! |
|
Follow us on