73
Chapter 6 - IDeal
™
Command Reference
G. (VAR1)=10
{Initialize Variable}
LP
{Beginning of Loop Block}
DI55,10
{Define Two Axis Move}
VE10,10
AC.5,.5
GI
{Start Go Immediate Move Both Axes}
MS1,’’’’
{Clear Screen}
MS1,(AI9)
{Write Analog Input 9 to the Screen While
Moving}
WT,#2
{Wait for Axis 2 to Stop Moving}
TD.5
{Time Delay of 0.5 seconds}
DI,10
{Define Axis 2 Move of 10 units}
GI
{Start Axis 2 GO Immediate Move}
IF8,1
{If Input 8 is on}
OT10,1
{Turn on Output 10}
TD.1
{Time Delay of 0.1 seconds}
OT10,0
{Turn off Output 10}
EB
{End of If Block}
WT,#2
{Wait for Axis 2 to Stop Moving}
TD.5
{Time Delay of 0.5 seconds}
DI,10
GI
{Start Axis 2 Go Immediate Move}
(DIST)=(VAR1)*1000
{Do Variable Math while Moving}
(TERM)=(DIST)
{Send Value of DIST Variable out of Serial Port}
WT,#2
{Wait for Axis 2 to Stop moving}
OT2,1
{Turn On Output 2}
WT#1
{Wait for Axis 1 to Stop Moving}
OT1,1
{Turn On Output 1}
DA0,0
GO
{Move Both Axes Back to Starting Position}
EB
{End of Loop Block,Restart Loop}
EN
{End of Program}
Содержание B8961
Страница 111: ...109 Chapter 7 Programming with Serial Communication...
Страница 132: ...B8961 and B8962 User Manual 130...
Страница 136: ...B8961 and B8962 User Manual 134 B8961 and B8962 Hardware Connections...
Страница 137: ...135 Chapter 8 Hardware Reference B8961 and B8962 Input and Output Schematics...
Страница 138: ...B8961 and B8962 User Manual 136 Connecting IDC Limit Switches to the B8961 2...
Страница 156: ...B8961 and B8962 User Manual 154...