.. first line of object.rst template .. first line of pou-object.rst template .. first line of fun-object.rst template .. <% set key = ".fld-Modbus.fld-POUs.CRC" %> .. _`.fld-Modbus.fld-POUs.CRC`: .. <% merge "object.Defines" %> .. <% endmerge %> .. index:: single: CRC .. _`CRC`: CRC (FUN) --------- FUNCTION CRC : UINT .. <% merge "object.Doc" %> Name : CRC (CRC16) + Date : 20015-03-24 + Description : Calculate the Checksum from a Byte Array .. <% endmerge %> .. <% merge "object.iotbl" %> InOut: +--------+-------+-----------------------------------+---------------------------------------+ | Scope | Name | Type | Comment | +========+=======+===================================+=======================================+ | Return | CRC | UINT | | +--------+-------+-----------------------------------+---------------------------------------+ | Input | buf | POINTER TO ARRAY [0..255] OF BYTE | Input buffer | + +-------+-----------------------------------+---------------------------------------+ | | start | UINT | Byteposition to start CRC-calculating | + +-------+-----------------------------------+---------------------------------------+ | | cnt | UINT | Bytes to calculate | +--------+-------+-----------------------------------+---------------------------------------+ .. <% endmerge %> .. last line of fun-object.rst template .. last line of pou-object.rst template .. last line of object.rst template