open-insight/LSL2/STPROC/CAR_CAUSE_STATUS_CONV.txt
Infineon\StieberD 7762b129af pre cutover push
2024-09-04 20:33:41 -07:00

31 lines
859 B
Plaintext

SUBROUTINE CAR_CAUSE_STATUS_CONV(ConvType, DataIo, SubrLabel, ReturnedValue)
*
begin condition
pre:
post:
end condition
$insert logical
equ valid$ to 0 ;* successful
equ invalid_msg$ to 1 ;* bad data - print error message window
equ invalid_conv$ to 2 ;* bad conversion - " "
equ invalid_nomsg$ to 3 ;* bad but do not print the error message window
status() = Valid$
begin case
case ConvType = 'ICONV'
ReturnedValue = DataIo
case ConvType = 'OCONV'
begin case
case DataIo = 'E'
ReturnedValue = 'Execution'
case DataIo = 'C'
ReturnedValue = 'Correlation'
case DataIo = 'S'
ReturnedValue = 'System'
end case
case otherwise$
status() = invalid_msg$
end case
return