Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Several of the other functions act as special case operations when operating on string values. 

Function

Description

#

ADD

Concatenate strings.

3

ASSIGN

Set a value into a register.

41

BIT-AND

Replace all occurrences of "<~Or?>" in string (use with BIT-OR or BIT-XOR).

8

BIT-OR

Replace all occurrences in string with the text "<~Or?>".

9

BIT-PACK

Take ASCII bytes from an integer and concatenate into an ASCII string.

54

BIT-XOR

Replace first occurrence in string with the text "<~Or?>".

10

DIVIDE BY

Return first byte of string.

6

EQUAL TO

Return True string is equal to another.

2

FORMAT

Store a value into a string using a defined number format.

17

GREATER THAN

Return True if string is greater than another.

0

INTEGER to ASCII BYTE

Convert integer value to printable ASCII representation.

76

INVERT

Reverse order of a string.

14

LESS THAN

Return True if string is less than another.

1

MULTIPLY

Replace all occurrences in a string.

5

NOT EQUAL TO

Returns True if strings are not equal.

93

STRING DROP PART

Drop a number of bytes from start or end of a string.

97

STRING GET PART

Keep only a number of bytes from start or end of a string.

96

STRING HEADER

Return bytes preceding a matching delimiter.

63

STRING LENGTH

Return length of a string.

67

STRING TO LOWER

Convert string to lowercase.

95

STRING TO UPPER

Convert string to uppercase.

94

STRING TRAILER

Return bytes following a matching delimiter.

64

STRING VALUE

Convert string to a numeric value.

35

SUBTRACT

Eliminate one string from another.

4


Program control

Function

Description

#

COMMENT

Add a comment or a row separator for readability.

47

DELAY

Sleep for a number of milliseconds.

16

EXIT

Exit from POD processing on true/non-zero.

58

FOR_LOOP

‘For’ loop for program iteration.

99

GO_SUB_POD

Call another POD program as a subroutine.

60

GOTO LABEL

Jump to another labeled POD program step on true/non-zero.

12

JUMP RELATIVE

Jump to another POD program step relative to the current step.

11

LABEL ONLY

Label a step to be used for a GOTO.

26

NOT EXIT

Exit from POD processing on false/zero.

124

NOT GOTO LABEL

Jump to another labeled POD program step on false/zero.

123

REPEAT UNTIL

Repeat loop of program iteration, similar to FOR_LOOP

126

RETURN

Return from a subroutine.

59

RUN POD(nnn)

Run another POD program without returning to current.

28

...

GET TIME Src/Oprnd=Ignored  Result> INT16[0-6]=YYYY,MM,DD,HH,MM,SS,ms  INT32=1970+Secs  STRING=YYYYMMDD-HHmmSS.ds

      Get the current system time and store into the RTDB. Source Addr and Operand are both ignored.

      If Result is cast to INT16 then the time will be saved to seven consecutive registers with YYYY, MM, DD, HH, mm, SS, mSec

      If Result is cast to INT32 then the time will be saved to two consecutive 32-bit Linux registers. 1st=Seconds since Jan. 1, 1970. 2nd=milliseconds in the current second.

      If Result is cast to REAL32 then the time will be saved to two consecutive registers will be affected.  The first will contain . 1st=YY*10000.0 + MM*100.0 + DD. The second will contain 2nd=HH*10000.0 + mm*100.0 + SS.

      If Result is cast to STRING then the Result will be saved to one register, as "YYYYMMDD-HHmmSS.ds  ds"  (ds=1/10th seconds)

HTTPPOST Src=Enable Opernd=2PtrCfgs [0]=StartAdrOfStrings 1=CountofStrings

...