EasyManuals Logo

Trio Motion Coordinator MC216 User Manual

Trio Motion Coordinator MC216
566 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #249 background imageLoading...
Page #249 background image
Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-59
Input / Output Commands
Example:
A rotating shaft has a cam operated switch which has to be changed for different
size work pieces. There is also a proximity switch on the shaft to indicate TDC of
the machine. With a mechanical cam the change from job to job is time consuming
but this can be eased by using the
PSWITCH
as a software 'cam switch'. The proxim-
ity switch is wired to input 7 and the output is fired by output 11. The shaft is con-
trolled by axis 0 of a 3 axis system. The motor has a 900ppr encoder. The output
must be on from 80° after TDC for a period of 120°. It can be assumed that the
machine starts from TDC.
The
PSWITCH
command uses the unit conversion factor to allow the positions to be
set in convenient units. So first the unit conversion factor must be calculated and
set. Each pulse on an encoder gives four edges which the controller counts, there-
fore there are 3600 edges/rev or 10 edges/°. If we set the unit conversion factor to
10 we can then work in degrees.
Next we have to determine a value for all the
PSWITCH
parameters.
This can all be put together to form the two lines of Trio BASIC code that set up the
position switch:
switch:
UNITS AXIS(0)=10' Set unit conversion factor (°)
REPDIST=360
REP_OPTION=ON
PSWITCH(0,ON,0,11,ON,80,200)
opst:
Selects the state to set the output to, if 1 then output set
ON
else set it
OFF
setpos:
The position at which output is set, in user units
rspos:
The position at which output is reset, in user units
sw
The switch number can be any one we chose that is not in use so for the
purpose of this example we will use number 0.
en
The switch must be enabled to work, therefore this must be set to 1.
axis
We are told that the shaft is controlled by axis 0, thus axis is set to 0.
opno
We are told that output 11 is the one to fire, so set opno to 11.
opst
When the output is set it should be on so set to 1.
setpos
The output is to fire at 80° after TDC hence the set position is 80 as we
are working in degrees.
rspos
The output is to be on for a period of 120° after 80° therefore it goes
off at 200°. So the reset position is 200.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Trio Motion Coordinator MC216 and is the answer not in the manual?

Trio Motion Coordinator MC216 Specifications

General IconGeneral
BrandTrio
ModelMotion Coordinator MC216
CategoryController
LanguageEnglish

Related product manuals