Download Tag Reference Manual - Pro

Transcript
Chapter 3 - Special Features
3
3.1 D-Script / Global D-Script
Special Features
The following chapter outlines the special “D-Script” function, and describes all D-Script parameters and settings.
3.1
D-Script / Global D-Script
3.1.1
Overview
Use the D-Script function to design your own program and execute it on the
GP to provide additional display functions. D-Script programs also help to
reduce the host’s (PLC’s) data display load.
M0050
Trigger:
Bit Rising
Bit address: M0050
Action:
[W:D00100]=100
3.1.2
MOVP K100
D100
Parts of a host’s
(PLC’s) ladder
program can be
replaced by
D-Script commands.
About D-Script
■ To use D-Script for all of a project’s screens, regardless of the current
screen, select Global D-Script. To use the D-Script only for the currently
displayed screen, select D-Script while creating that screen. The Global DScript feature is supported only by the GP77R, GP377 and GP2000 series.
■ Thanks to the Global D-Script feature, Bin→ BCD display format changes,
text data changes, or other functions, all previously performed by the PLC,
can now be performed by the GP.
■ Since D-Script is a language program, debugging can be performed easily.
■ D-Script can be programmed as a trigger to sense the leading or falling edge
of a bit, to activate a timer, or to detect true or false of a given condition.
■ There are three elements in a D-Script, Operators, Statements, and Operands, which can be used to program conditions in the host (PLC).
■ There are four types of commands: Drawing, Mathematical calculations,
Boolean operations, and Bit operations.
GP-PRO/PBIII for Windows Ver. 5.0 Tag Reference Manual
3-1