13.07.2015 Views

CAAPE User's Manual - ALSTOM Signaling Inc.

CAAPE User's Manual - ALSTOM Signaling Inc.

CAAPE User's Manual - ALSTOM Signaling Inc.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simulator ReferenceFunction: GET_NVSERSP_POSN( port, position,message_bit, return_value )Returns the value of the specified bit in a special message specified by its serial portand position.• port is the serial port from 1 to max.• position is the zero-based position of the special message.• message_bit is the message bit, where 1 is the first bit.• return_value is the name of a Boolean variable which gets the value of the specialmessage bit.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 andaddress.• 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 thespecial 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 )P2512A, Rev. Oct/09 12–23 Alstom <strong>Signaling</strong> <strong>Inc</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!