Difference between revisions of "IT SETUP TOOL GET MATCHING BLOCK"

From Macros Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[:Category:Intermediate Tooling|{{Up}}]]
 
[[:Category:Intermediate Tooling|{{Up}}]]
  
{{Command|syntax=IT_SETUP_TOOL_GET_MATCHING_BLOCK <toolgroup> <station> <index> <block make> <block name>
+
{{Command|syntax=IT_SETUP_TOOL_GET_MATCHING_BLOCK <tool number> <index> <block make> <block name>
|description=:Get a one of the blocks that matches the filters used for a tool position
+
|description=:Get a one of the blocks that matches the filters used for a tool
  
|param1=<toolgroup>|param1_desc=Toolgroup number
+
|param1=<tool number>|param1_desc=Tool number
|param2=<station>|param2_desc=Station number
+
|param2=<index>|param2_desc=Index to the list of matching blocks (1=first matching block)
|param3=<sindex>|param3_desc=Index to the list of matching blocks (1=first matching block)
+
|param3=<block make>|param3_desc=String variable for the block make
|param4=<block make>|param4_desc=String variable for the block make
+
|param4=<block name>|param4_desc=String variable for the block name
|param5=<block name>|param5_desc=String variable for the block name
 
 
}}
 
}}
  

Latest revision as of 18:08, 16 April 2015

Up

Command

IT_SETUP_TOOL_GET_MATCHING_BLOCK <tool number> <index> <block make> <block name>


Get a one of the blocks that matches the filters used for a tool

Parameters

<tool number>
Tool 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_TOOL_GET_NUM_MATCHING_BLOCKS, 4, iNumBlocks
FOR i=1 TO iNumBlocks
   IT_SETUP_TOOL_GET_MATCHING_BLOCK 4, i, a$, b$
   MESSAGE "Matching block %i of %iNumBlocks. Make = %a$, name = %b$"
NEXT i

[[Category:IT_Setup_Data]