pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-22
$EXTADDR_TO_BADDR
lprmcommand input
uINT:value
is the load parameter.
lacsubcommand input
sINT:value
is the load address and the command word.
rdstdevstatus output
uINT:variable
is the controller and device status.
channelstatus output
sINT:variable
See the system description manual for your system for details.
$EXTADDR_TO_BADDR
$EXTADDR_TO_BADDR converts a BADDR address to an EXTADDR address.
Figure 18-5. TAL Code Equivalent to $EXECUTEIO Routine
CODE(STRP 7);
STACK channel, lrpm_command, lac_subcommand;
CODE(EIO);
STORE channel_status;
STORE rdst_dev_status;
CODE(STRP 7);
Example 18-13. Call to $EXECUTEIO Routine
INT channel;
INT lprm_command;
INT lac_subcommand;
INT rdst_dev_status;
INT channel_status;
$EXECUTEIO (channel, lprm_command, lac_subcommand,
rdst_dev_status, channel_status);
expression( )
VST686.vsd
$EXTADDR_TO_BADDR