EasyManua.ls Logo

Nidec Digitax ST Plus - Page 103

Nidec Digitax ST Plus
132 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SM-Applications Modules & Motion Processors User Guide 103
Issue Number: 4
Safety
Information
Introduction Installation
Getting
Started
Parameters
DPL
Programming
Communications
Freeze and
Marker
CTSync
Inter-option
Synchronization
Diagnostics
Migration
Guide
Quick
Reference
Index
9.6.2 Example Slave code
The following code shows how the slave(s) would read the reference data generated by
the Virtual Master.
Initial
{
#81.06=26 //CTSync Slave
#81.12=2 //Pos task at 500us
REINIT
//Set up Virtual Master Ramp Reference.
Ramp% = 0
//Configure Slave output channel 1 to menu 18, parameter 11.
CTSYNCSetupOutputChannel(1,18,11)
//Enable the configured output channel.
CTSYNCEnableOutputChannel(1)
}
POS0
{
//Perform Slave function first, so timing is identical between master and slave:
(Slaveref1%,Slaveref2%,Auxref%, Status%) = CTSYNCGetSlaveReferences()
// Check the data was received in good order.
if Status% = USR_VALUE_OK then
//Output to the drive at the start of next motion period.
CTSYNCWriteOutputChannel(1,Slaveref1%)
endif
}

Table of Contents

Related product manuals