Rockwell Automation 2708-NBD VBASIC Language Development Kit User Manual

Page 70

Advertising
background image

Appendix C

Application Library Subroutines

C–2

In TRIG.BAS

FullArcTangent!

Returns arc tangent using numerator and denominator

. .

ArcTangent!

Relturns the inverse tangent in radians

. . . . .

ArcSine!

Returns the inverse sine in radians

. . . . . . . .

ArcCosine!

Returns the inverse cosine in radians

. . . . . .

Tangent!

Returns the tangent of an angle in radians

. . . . . . . .

Sine!

Returns the sine of an angle in radians

. . . . . . . . . . .

Cosine!

Returns the cosine of an angle in radians

. . . . . . . . .

In HYP.BAS

TangentH

Hyperbolic tangent

. . . . . . .

SineH

Hyperbolic sine

. . . . . . . . . .

CosineH

Hyperbolic cosine

. . . . . . . .

ArcTangentH

Returns inverse hyperbolic tangent

. . . .

ArcSineH

Relturns inverse hyperbolic cosine for x = 0

. . . . . . .

ArcCosineH

Returns inverse hyperbolic cosine for principal values

. . . . .

OpenLINX

Opens all devices to be used by low level I/O routines.

This MUST be called before any of the Event or Read routines. This
performs the actual BASIC OPEN statements for all of the devices which are
accessed by the low level I/O.

Note: The global constant PcMode will be TRUE if th is program is running
using EnvPC.BAS instead of Env.BAS. You may use this for any operations
which are not fully emulated by the EnvPC environment. This also
establishes the global environment variables.

DSPWIDTH% = 40 or 16 depending on the type of workstation
TERMNUM% = The current terminal number
TERMTYPE$ = “NORML”, “MASTR”, etc

OpenLINX
SUB OpenLINX

TestEvent%

Tests for a low level event returns 0 when no event has
occurred. Events are either keys read from the
workstation keyboard, or special codes. Special codes
are always negative, although some special keys also
return negative codes. See OpenLINX for initialization
information.

Advertising