07.01.2015 Views

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

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.

Section 15. Alternate Telecoms Resource Library<br />

15.1.2.1 Glossary of Terms<br />

Coils (00001 to 09999)<br />

Originally, "coils" referred to relay coils. In <strong>CR200</strong>(X)s, coils are<br />

exclusively ports, flags, or a Boolean variable array. Ports are inferred if<br />

parameter 5 of the ModbusSlave instruction is set to 0. Coils are assigned to<br />

Modbus registers 00001 to 09999.<br />

Digital Registers 10001-19999<br />

Hold values resulting from a digital measurement. Digital registers in the<br />

Modbus domain are read only. In the CSI domain, the leading digit in<br />

Modbus registers is ignored, and so are assigned together to a single Dim or<br />

Public variable array (read / write).<br />

Input Registers 30001 - 39999<br />

Hold values resulting from an analog measurement. Input registers in the<br />

Modbus domain are read only. In the CSI domain, the leading digit in<br />

Modbus registers is ignored, and so are assigned together to a single Dim or<br />

Public variable array (read / write).<br />

Holding Registers 40001 - 49999<br />

Hold values resulting from a programming action. Holding registers in the<br />

Modbus domain are read / write. In the CSI domain, the leading digit in<br />

Modbus registers is ignored, and so are assigned together to a single Dim or<br />

Public variable array (read / write).<br />

RTU / PLC<br />

Remote Telemetry Units (RTUs) and Programmable Logic Controllers<br />

(PLCs) were at one time used in exclusive applications. As technology<br />

increases, however, the distinction between RTUs and PLCs becomes more<br />

blurred. A <strong>CR200</strong>(X) fits both RTU and PLC definitions.<br />

15.1.3 Programming for Modbus<br />

15.1.3.1 Declarations<br />

TABLE. CRBASIC Ports, Flags, Variables and Modbus Registers (p. 141)<br />

shows the linkage between <strong>CR200</strong>(X) ports, flags and Boolean variables and<br />

Modbus registers. Modbus does not distinguish between <strong>CR200</strong>(X) ports, flags,<br />

or Boolean variables. By declaring only ports, or flags, or Boolean variables, the<br />

declared feature is addressed by default. A typical CRBASIC program for a<br />

Modbus application will declare variables and ports, or variables and flags, or<br />

variables and Boolean variables.<br />

140

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

Saved successfully!

Ooh no, something went wrong!