Download CAAPE User`s Manual

Transcript
Simulator Reference
For example:
* Get the second bit of the first special message on port 1:
CALL GET_NVSERSP_POSN( 1,0,2,NEWVAL )
Function: SET_NVSERSP_ADDR( port, address, check_address_bits, message_bit,
new_value )
Set the value of the specified bit in a special message specified by its serial port and
address.
•
port is the serial port from 1 to max.
•
address is a string giving the message address.
•
check_address_bits is TRUE if the number of address bits is significant.
•
message_bit is the message bit, where 1 is the first bit.
•
new_value is a Boolean variable or a constant which contains the new value of the
special message bit.
For example:
* Clear the second bit of the special message with address 1101 on port 2:
CALL SET_NVSERSP_ADDR( 2,"1101",TRUE,2,FALSE )
Function: SET_NVSERSP_POSN( port, position, message_bit, new_value )
Set the value of the specified bit in a special message specified by its serial port and
position.
•
port is the serial port from 1 to max.
•
position is the zero-based message position.
•
message_bit is the message bit, where 1 is the first bit.
•
new_value is a Boolean variable or a constant which contains the new value of the
special message bit.
For example:
* Clear the third bit of the second special message on port 1:
CALL SET_NVSERSP_POSN( 2,1,3,FALSE )
P2512A, Rev. F, Nov/13
12–19
Alstom Signaling Inc.