Delta Tau GEO BRICK LV ユーザーズマニュアル
Geo Brick LV User Manual
Introduction
12
Downloadable Turbo PMAC Script
!
Caution
Some code examples require the user to input specific information
pertaining to their system hardware. When user information is
required, a commentary ending with –User Input is inserted.
pertaining to their system hardware. When user information is
required, a commentary ending with –User Input is inserted.
This manual contains downloadable code samples in Turbo PMAC script. These examples can be copied
and pasted into the editor area in the Pewin32pro2. Care must be taken when using pre-configured Turbo
PMAC code, some information may need to be updated to match hardware and system specific
configurations. Downloadable Turbo PMAC Scripts are enclosed in the following format:
// TURBO PMAC SCRIPT EXAMPLE
P1=0
P1=0
; Set P1=0 at download
Open PLC 1 Clear
; Open PLC Buffer 1, clear contents
CMDP"Geo Brick LV Manual Test PLC"
; Send unsolicited response to host port
P1=P1+1
; Counter using variable P1
Disable PLC 1
; Disable plc 1
Close
; Close open buffer
!
Caution
All PLC examples are stated in PLC number 1. It is the user’s
responsibility to arrange their application PLCs’ properly and handle
power-on sequencing for various tasks.
responsibility to arrange their application PLCs’ properly and handle
power-on sequencing for various tasks.
It is the user’s responsibility to use the PLC examples presented in this manual properly. That is,
incorporating the statement code in the application configuration, and handling tasks in a sequential
manner. For example, with serial absolute encoders, setting up the global control registers should be
executed before trying to read absolute position, and absolute phase referencing. Furthermore, other PLC
programs (which would be trying to move motors) should be disabled until these functions are executed.
!
Caution
Often times, downloadable example codes use suggested M-variables,
it is the user’s responsibility to make sure they are downloaded, or
perform necessary changes to use the intended registers.
it is the user’s responsibility to make sure they are downloaded, or
perform necessary changes to use the intended registers.