IT SETUP STATION GET MATCHING BLOCK: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
|param1=<toolgroup>|param1_desc=Toolgroup number | |param1=<toolgroup>|param1_desc=Toolgroup number | ||
|param2=<station>|param2_desc=Station number | |param2=<station>|param2_desc=Station number | ||
|param3=< | |param3=<index>|param3_desc=Index to the list of matching blocks (1=first matching block) | ||
|param4=<block make>|param4_desc=String variable for the block make | |param4=<block make>|param4_desc=String variable for the block make | ||
|param5=<block name>|param5_desc=String variable for the block name | |param5=<block name>|param5_desc=String variable for the block name | ||
Revision as of 23:08, 16 April 2015
Command
- IT_SETUP_STATION_GET_MATCHING_BLOCK <toolgroup> <station> <index> <block make> <block name>
- Get a one of the blocks that matches the filters used for a tool position
Parameters
- <toolgroup>
- Toolgroup number
- <station>
- Station number
- <index>
- Index to the list of matching blocks (1=first matching block)
- <block make>
- String variable for the block make
- <block name>
- String variable for the block name
Example
- IT_SETUP_STATION_GET_NUM_MATCHING_BLOCKS, 1, 21, iNumBlocks
- FOR i=1 TO iNumBlocks
- IT_SETUP_STATION_GET_MATCHING_BLOCK 1, 21, i, a$, b$
- MESSAGE "Matching block %i of %iNumBlocks. Make = %a$, name = %b$"
- NEXT i