Motion Coordinator
Technical Reference Manual
Trio BASIC Commands 8-51
Input / Output Commands
HEX
Type:
Command
Description:
The
HEX
command is used in a print statement to output a number in hexadecimal
format. The HEX command is available on MC206/MC224 only.
Example:
PRINT#5,HEX(IN(8,16))
IN()/IN
Type:
Function.
Syntax:
IN(input no<,final input>)/IN
Description:
Returns the value of digital inputs. If called with no parameters, IN returns the
binary sum of the first 24 inputs (if connected). If called with one parameter whose
value is less than the highest input channel, it returns the value (1 or 0) of that par-
ticular input channel. If called with 2 parameters
IN()
returns in binary sum of the
group of inputs. In the 2 parameter case the inputs should be less than 24 apart.
Parameters:
Example 1:
In this example a single input is tested:
test:
WAIT UNTIL IN(4)=ON
GOSUB place
Example 2:
Move to the distance set on a thumb wheel multiplied by a factor. The thumb wheel
is connected to inputs 4,5,6,7 and gives output in BCD.
moveloop:
MOVEABS(IN(4,7)*1.5467)
WAIT IDLE
GOTO moveloop
Note how the move command is constructed:
Step 1: IN(4,7) will get a number 0..15
Step 2: multiply by 1.5467 to get required distance
Step 3: absolute MOVE by this distance
input no:
input to return the value of/start of input group
<final input>:
last input of group
Summary of Contents for Motion Coordinator Euro 205
Page 4: ......
Page 11: ...C H A P T E R CHAPTER0INTRODUCTION...
Page 12: ......
Page 27: ...C H A P T E R CHAPTER0HARDWARE OVERVIEW...
Page 28: ......
Page 35: ...Motion Coordinator Technical Reference Manual Hardware Overview 2 9 Motion Coordinator MC202...
Page 75: ...C H A P T E R CHAPTER0INSTALLATION...
Page 76: ......
Page 88: ...3 14 Installation EMC Considerations Trio Motion Technology...
Page 89: ...C H A P T E R CHAPTER0DAUGHTER BOARDS...
Page 90: ......
Page 126: ...4 38 Daughter Boards Profibus Daughter Board Trio Motion Technology...
Page 127: ...C H A P T E R CHAPTER0EXPANSION MODULES...
Page 128: ......
Page 158: ...5 32 Expansion Modules Communications Adaptors Trio Motion Technology...
Page 159: ...C H A P T E R CHAPTER0SYSTEM SETUP AND DIAGNOSTICS...
Page 160: ......
Page 173: ...C H A P T E R CHAPTER 0PROGRAMMING...
Page 174: ...7 2 Programming Trio Motion Technology...
Page 190: ...7 18 Programming Command Line Interface Trio Motion Technology...
Page 191: ...C H A P T E R CHAPTER0TRIO BASIC COMMANDS...
Page 192: ......
Page 200: ...8 10 Trio BASIC Commands Trio Motion Technology VERIFY 8 178 VFF_GAIN 8 178 VP_SPEED 8 179...
Page 254: ...8 64 Trio BASIC Commands Input Output Commands Trio Motion Technology...
Page 372: ...8 182Trio BASIC Commands Axis Parameters Trio Motion Technology...
Page 373: ...C H A P T E R CHAPTER 0PROGRAMMING EXAMPLES...
Page 374: ......
Page 389: ...C H A P T E R CHAPTER0SUPPORT SOFTWARE...
Page 390: ......
Page 472: ...10 84Support Software Project Autoloader Trio Motion Technology...
Page 473: ...C H A P T E R CHAPTER0FIBRE OPTIC NETWORK...
Page 474: ......
Page 486: ...11 14Fibre Optic Network Network Specification Trio Motion Technology...
Page 487: ...C H A P T E R CHAPTER0USING THE TRIO ACTIVEX CONTROL...
Page 488: ......
Page 518: ...12 32Using the Trio ActiveX Control Events Trio Motion Technology...
Page 519: ...C H A P T E R CHAPTER0COMMUNICATIONS PROTOCOLS...
Page 520: ......
Page 551: ...A P P E N D I X CHAPTER 0REFERENCE...
Page 552: ......