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: ADDRESS_TO_BIN( address,addressHI,addressLO )Converts a text string containing a binary address to integer values. Since a messageaddress can be up to 32 bits long and integer values in application logic are only 16 bits,upper and lower values are returned. If the numeric value of the address is less than65536, the upper value can be ignored.This function can be used when the numerical value of a message address must beused in simulation logic:• address is a string or a string variable containing a binary address.• addressHI returns the upper integer value of the address.• addressLO returns the lower integer value of the address.For example:* Check whether the address in variable ADDRESS_STRING is 56CALL ADDRESS_TO_BIN( ADDRESS_STRING,HI_ADDR,LO_ADDR )IF( LO_ADDR==56 )...P2512A, Rev. Oct/09 12–27 Alstom <strong>Signaling</strong> <strong>Inc</strong>.

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

Saved successfully!

Ooh no, something went wrong!