PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke

PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke

28.03.2014 Views

Addressing 4.8. Addressing The value of the operand can be assigned in two different ways: -- Absolute value (constant, voltage or current values) -- Contents of an operand (bit, byte, word) 4.8.1. Address mnemonics Operand addresses are given as mnemonicss, e.g. BM00.00, O00.00, PT00.00. The actual address management of the processor remains invisible. For example, "L BM00.00" symbolises the loading of the contents of a memory location which carries the mnemonic name "BM00.00". 4 - 42

PC Control 645-12M used as PLC 4.8.2. Offset addressing It is possible to indicate an offset together with the absolute address of a local operand. The address is then made up by adding absolute address and offset. L BM00.00[BM00.01] means that the value in BM00.01 (offset) is added to the address of BM00.00. The resulting new address then responds to the load command. The value of the offset should be selected in a way that excludes exceeding the corresponding operand range (max. 256 addresses). Reason: Exceeding the operand range leads to reading (with read commands L, A, O...) from or writing (with assignment commands =, =N) into an operand from another range. This may lead to unintended machine functions or to program destruction. Examples L M00.00[5] is the same as L M00.05 = O01.00[6] is the same as = O01.06 4.8.2.1. External operands used as offset Offset addressing of external operands (PROFIBUS inputs) is not possible. Example: L O03a00.00[3] However, external byte operands can be used as variable offset. Example: L BR01.00[BI03a00.] 4 - 43

Addressing<br />

4.8. Addressing<br />

The value of the operand can be assigned in two different<br />

ways:<br />

-- Absolute value (constant, voltage or current values)<br />

-- Contents of an operand (bit, byte, word)<br />

4.8.1. Address mnemonics<br />

Operand addresses are given as mnemonicss, e.g.<br />

BM00.00, O00.00, PT00.00. The actual address management<br />

of the processor remains invisible.<br />

For example, "L BM00.00" symbolises the loading of the<br />

contents of a memory location which carries the mnemonic<br />

name "BM00.00".<br />

4 - 42

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

Saved successfully!

Ooh no, something went wrong!