
12
Chapter
12 -1
Call Routines 0 – 68
Calls 0 – 68 are described here. Calls 69 – 127 are described in Chapter
13. Chapter 7 gives you an overview of how to use these calls within your
BASIC program. Use these calls within your BASIC program or from the
command line.
Important: CALL numbers above 127 are not valid and cause the BASIC
module error–
ERROR
CALL ARGUMENT OUT OF RANGE.
CALL Description Page CALL Description Page
0
reset module 12 -2 35 retrieve numeric input character from PRT2 port 12 -34
1 no operation 12 -2 36 get number of characters in PRT2 port buffers 12 -35
2 timed-block-transfer-read buffer 12 -2 37 clear PRT2 port buffers 12 -35
3 timed-block-transfer-write buffer 12 -3 38 expanded ONERR restart 12 -36
4 set block-transfer-write length 12 -4 39 3.3-Digit Signed, BCD to BASIC Floating Point 12 -38
5 set block-transfer-read length 12 -4 40 set wall clock time 12 -39
6 block-transfer-write buffer 12 -5 41 set wall clock date 12 -40
7 block-transfer-read buffer 12 -5 42 set wall clock day of week 12 -40
8 disable interrupts (no operation) 12 -6 43 date/time retrieve string 12 -41
9 enable interrupts (no operation) 12 -6 44 date retrieve numeric 12 -41
10 3-digit decimal BCD to BASIC floating point 12 -6 45 time retrieve string 12 -42
11 16-bit binary to BASIC floating point 12 -7 46 time retrieve numeric 12 -42
12 4-digit octal to BASIC floating point 12 -7 47 retrieve day of week string 12 -43
13 6-digit decimal BCD to BASIC floating point 12 -8 48 retrieve day of week numeric 12 -43
14 SLC 16-bit signed integer to BASIC floating point 12 -8 49 read remote DH-485 SLC data file 12 -44
15 SLC 16-bit unsigned integer to BASIC floating point 12 -9 50 write to remote DH-485 SLC data file 12 -50
16 enable/disable DF1 packet interrupt 12 -10 51 undefined 12 -58
17 4-digit BCD to BASIC floating point 12 -11 52 date retrieve string 12 -58
18 re-enable control C break function 12 -11 53 undefined 12 -58
19 disable the control C break function 12 -12 54 undefined 12 -58
20 BASIC floating point to 3-digit decimal BCD 12 -12 55 undefined 12 -58
21 BASIC floating point to 16-bit binary 12 -13 56 undefined 12 -58
22 BASIC floating point to 4-digit octal 12 -13 57 undefined 12 -58
23 BASIC floating point to 6-digit decimal BCD 12 -14 58 undefined 12 -58
24 BASIC floating point to SLC 16-bit signed integer 12 -15 59 undefined 12 -58
25 BASIC floating point to SLC 16-bit binary 12 -16 60 string repeat 12 -59
26 BASIC floating point to 3.3-digit BCD 12 -17 61 string append 12 -60
27 BASIC floating point to 4-digit BCD 12 -17 62 number to string conversion 12 -61
28 undefined 12 -18 63 string to number conversion 12 -62
29 read/write to PLC/SLC from module internal string 12 -18 64 find a string in a string 12 -63
30 PRT2 port support parameter set 12 -20 65 replace a string in a string 12 -64
31 display PRT2 port parameters 12 -21 66 insert a string in a string 12 -65
32 enable/disable processor interrupt 12 -22 67 delete a string from a string 12 -66
33 transfer data from PRT1/PRT2 to BTR buffer 12 -23 68 determine length of a string 12 -67
34 transfer data from BTW buffer to PRT1/PRT2 12 -29 what’s next? 12 -67
What’s in This Chapter?
Chapter
Comentarios a estos manuales