Remote-processing BASIC for the CX-10 Modbus User Manual Page 66

  • Download
  • Add to my manuals
  • Print
  • Page
    / 84
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 65
BASIC PROGRAMMING GUIDE
2-57
SGN
Syntax: SGN(
expr
)
Function: Returns +1 if
expr
is greater than zero, zero if the
expr
equals zero, and -1 if
expr
is less than zero.
Mode: Command, run
Use: PRINT SGN(SIN(X)))
DESCRIPTION
Use SGN in level control applications. If a level is high or low, it can direct control to the appropriate
program.
EXAMPLE
100 ON SGN(A)+1 GOSUB 2000,3000,4000
Page view 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 83 84

Comments to this Manuals

No comments