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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Simulator ReferenceFunction: SET_NVTWCSP( board, channel, pos, message_bit, new_value )Sets the value of the specified bit in a special message.• board is the TWC/NVTWC board.• channel is the TWC/NVTWC channel.• pos is the zero-based position of the message in the list of special messagesassigned to the channel.• 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 fourth bit of the third special message for TWC board 1, channel 2CALL SET_NVTWCSP( 1,2,2,4,FALSE )12.4.5. Utility FunctionsFunction: STRING_COMPARE( string1,string2,are_equal )Does a case-insensitive compare of two strings.• string1 and string2 are strings or string variables to be compared.• are_equal is a returned Boolean value which is True if the two strings are the same.For example:* Check whether the string contained in variable ADDR is "00110"CALL STRING_COMPARE(ADDR,"00110",ARE_EQUAL )IF( ARE_EQUAL==TRUE )...P2512A, Rev. Oct/09 12–26 Alstom <strong>Signaling</strong> <strong>Inc</strong>.

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

Saved successfully!

Ooh no, something went wrong!