Overview of the Example

Navigation:  Quick Start >

Overview of the Example

Previous pageReturn to chapter overviewNext page

 

The remaining stages in the Quick Start will show how to create and execute the following program.

 

The example program uses a user created RAMP block to generate a triangular waveform. The code in the Clock Program will initialize some program variables and ensures that the target parameters are set to execute the Clock task once every 32 milliseconds. The Clock task performs a linear RAMP from its starting value to a Setpoint value defined by the user, and then back down again to the negative setpoint value.

 

It is important to note that the actual program itself is only of secondary importance in this Quick Start Guide. The primary goal is to familiarize the user with the basic concepts and tools within Machine Control Studio and its working with the supported targets.

 

The steps will guide the user through declaring variables, creating function blocks, creating program code, and finally executing that project on the target.

 

Note: In the Machine Control Studio programming environment, drive parameters are represented in the format Mxx.Pyyy, where xx is replaced with the desired Menu number and yyy is replaced with the desired parameter number within that menu. For example, M18.P020 is the proper way to reference Parameter 20 within Menu 18. Also note that Mxx.Pyyy can be preceded with a Slot# identifier for certain parameters, but that is not covered in this programming example.

 

The next Quick Start stage is:

 

Create a Project