SPI Programming Manual (G06.24+, H06.03+, J06.03+)

SPI Programming Examples
SPI Programming Manual427506-006
E-90
Example E-21: TAL Examples Compiler
Example E-21: TAL Examples Compiler
The TACL command file in Example E-21 compiles the TAL example programs. Modify
the two file assignments to specify the location of the SPI definition files on your node.
($SYSTEM.SPIDEF is the default.)
Source File
SETBUILD
Example E-22: C Examples Compiler
The TACL command file in Example E-22 compiles the C example programs. Modify
the two file assignments to specify the location of the SPI definition files on your node.
($SYSTEM.SPIDEF is the default.)
Source File
SECBUILD
Example E-21. TACL Command File to Compile TAL Program Examples
comment This TACL obey file will compile all of the SPI Example (TAL) files.
comment Change these assigns to match your system’s configuration.
ASSIGN ZSPITAL, $SYSTEM.SPIDEF.ZSPITAL
ASSIGN ZCOMTAL, $SYSTEM.SPIDEF.ZCOMTAL
TAL /in SET0204, out $s.#hold/ SET0204O
TAL /in SET0205, out $s.#hold/ SET0205O
TAL /in SET0206, out $s.#hold/ SET0206O
TAL /in SET0207, out $s.#hold/ SET0207O
TAL /in SETREQR, out $s.#hold/ SETREQRO
TAL /in SETSERV, out $s.#hold/ SETSERVO
Example E-22. TACL Command File to Compile C Program Examples
comment This TACL obey file will compile all of the SPI Example (C) files.
comment Change these SSVs to match your system’s configuration.
#push myParms
#set myParms runnable, &
ssv0 "[#defaults]",&
ssv1 "$DSV.ZSPIDEF"
C /in SEC0204C, out $s.#SEC0204/ SEC0204O; [myParms]
C /in SEC0205C, out $s.#SEC0205/ SEC0205O; [myParms]
C /in SEC0206C, out $s.#SEC0206/ SEC0206O; [myParms]
C /in SEC0207C, out $s.#SEC0207/ SEC0207O; [myParms]
C /in SECREQRC, out $s.#SECREQR/ SECREQRO; [myParms]
C /in SECSERVC, out $s.#SECSERV/ SECSERVO; [myParms]
#pop myParms