15.11.2014 Views

Telemetry Module MT-102 User's Manual - BlueNote Communications

Telemetry Module MT-102 User's Manual - BlueNote Communications

Telemetry Module MT-102 User's Manual - BlueNote Communications

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.

9.14.5. Checking bit's value in the registry<br />

In case of <strong>MT</strong>-101-to-<strong>MT</strong>-101 communication (the cascade system), it is necessary to test<br />

values of receiving module's registers holding the status received last via GPRS from sending<br />

module. <strong>MT</strong>Prog recognizes it as: R<strong>MT</strong>_IN (input space), R<strong>MT</strong>_ID_OUT (sender's ID + output<br />

space), R<strong>MT</strong>_AN1 and R<strong>MT</strong>_AN2 (input AN1 respectively AN2).<br />

Scheme:<br />

Create the rule sending status<br />

triggered by any change of I1<br />

addressed to remote module<br />

Download the program that checks<br />

R<strong>MT</strong>_IN and the value of bit 9<br />

(corresponding to senders I1 input value)<br />

and sets Q1 accordingly.<br />

As the result, the value of binary input I1 at sending module will be mirrored by receiving<br />

module's binary output Q1.<br />

Line 0 copies the bit 9 of R<strong>MT</strong>_IN into REG1. Line 1 compares REG1 to 256<br />

(value of bit 9) and sets Q1 accordingly to the actual value.<br />

109

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

Saved successfully!

Ooh no, something went wrong!