IT SETUP STATION GET MATCHING BLOCK: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
Created page with "{{Up}} {{Command|syntax=IT_SETUP_STATION_GET_MATCHING_BLOCK <toolgroup> <station> <index> <block makes> <block names> |description=:Get a o..."
 
Mikeo (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[:Category:Intermediate Tooling|{{Up}}]]
[[:Category:Intermediate Tooling|{{Up}}]]


{{Command|syntax=IT_SETUP_STATION_GET_MATCHING_BLOCK <toolgroup> <station> <index> <block makes> <block names>
{{Command|syntax=IT_SETUP_STATION_GET_MATCHING_BLOCK <toolgroup> <station> <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 match the filters used for a tool position


|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=<sindex>|param3_desc=Index to the list of matching blocks (1=first matching block)
|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

Latest revision as of 15:24, 17 April 2015

Up

Command

IT_SETUP_STATION_GET_MATCHING_BLOCK <toolgroup> <station> <index> <block make> <block name>


Get a one of the blocks that match 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