Download procedure - Pro-face America HMI Store
Transcript
2.5 D-Script/Global D-Script
Chapter 2 - CREATING BASE SCREENS
• The range available for the temporary Word Address value
will differ depending on the data format (Bin, BCD), bit length,
and code +/- used. If code +/- has been designated and the
temporary Word Address becomes a negative value, the
condition is judged at the beginning of the loop and the loop
processing stops.
• DO NOT use a PLC device in the loop formula. Instead, use an
address from the LT’s internal LS area’s user area device, or
a temporary Word Address. For example, the following de
scription preforms data write to the PLC many times in a
short period (100 times in the following example). This can
cause a system error since communication processing (the
time required to write to the PLC) cannot be performed at this
speed. (The addresses entered below are just a few ex
amples. The actual address entry varies depending on your
PLC type.)
E.g.
[t:0000] = 100
loop ([t:0000])
{
//Loop100 times
[w:D0200] = [w:LS0100]
[w:LS0100] = [w:LS0100] + 1
//Write data to D0200
//Increment LS0100
} endloop
Change as follows:
[t:0000] = 100
loop ([t:0000])
{
[w:LS200] = [w:LS0100]
[w:LS0100] = [w:LS0100] + 1
} endloop
[w:D0200] = [w:LS0200]
//Loop100 times
//Writes data to D0200
//Increment LS0100
//Writes LS0200 data to D0200
• Using “loop” or “break” a variable name for a D-Script vari
able will cause an error.
break
Halts loop operation while the loop() equation is being executed.
The “break” command can be used only in the { } section of
loop().
LT Editor Ver. 2.0 Operation Manual - Screen Creation Guide
2-211
Related documents
procedure - Pro
Logic Programming Guide - Pro
GP-PRO/PB III for Windows Ver. 6.2 Tag - Pro
Tag Reference Manual - Pro
LogiTouch Editor Ver.1.0 External Device - Pro
procedure - Pro
多機能プリンター CSP-240 取扱説明書 注 意
DESIGN & DATA ACQUISITION at 3
Pro-Control Editor Ver.5.1 Operation Manual - Pro
2010 REU Navigation System User`s Manual
GSM / UMTS
Kansas Commercial Driver License Manual