8-58 Trio BASIC Commands
Input / Output Commands
Trio Motion Technology
Example:
PRINT#10,"SPEED=";SPEED[6,1];
PSWITCH
Type:
Command
Syntax:
PSWITCH(sw,en,[,axis,opno,opst,setpos,rspos])
Description:
The
PSWITCH
command allows an output to be fired when a predefined position is
reached, and to go OFF when a second position is reached. There are 16 (8 on
MC202) position switches each of which can be assigned to any axis, and can be
assigned ON/OFF positions and OUTPUT numbers.
Multiple PSWITCH’s can be assigned to a single output. The result on the output will
be the OR of the position switches and the standard BASIC OP setting.
The command must be used with all 7 parameters to enable a switch, just the first
2 parameters are required to disable a switch.
Parameters:
7
RS-232 port A - channel 7
8
RS-232 port A - channel 8 - reserved for use by Motion Perfect
9
RS-232 port A - channel 9 - reserved for use by Motion Perfect
10..24
send text string to fibre optic network node 1..15
n:
Output device:-
sw:
The switch number in the range 0..15
en:
Switch enable -
1 or ON to enable software
PSWITCH
0 or OFF to disable
PSWITCH
3 to enable hardware
PSWITCH
(hardware PSWITCH can only be used with a P242 daughter board
axis:
Axis number which is to provide the position input in the range
0..number of axes on the controller. For a hardware
PSWITCH
it should
be set to the axis slot number.
opno:
Selects the physical output to set, should be in range 8..31. For a hard-
ware
PSWITCH
it should be set to 0..3.
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: ......