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

Summary of commands 4.6.12. Commands of the data modules Command Operand ByteTime [µs] Function x, byte1, load data module into DBx00.00...15.15 load data module into DBx00.00...15.15 (x value 0...7 in byte1) LoadDB load data module number y (y = value 1...255 in byte x,byte2 into DBx00.00...15.15 (x = 0...7) byte1,byte2 load data module number y (y = value 1...255 in byte intoDBx00.00...15.15(x = value 0...7 in byte1) x, 12 150 store DBx00.00...15.15 (x = 0...7) in data module ++ ++ byte1, store DBx00.00...15.15 (x = value 0...7 in byte1) in d module StoreD store DBx00.00...15.15 (x = 0...7) in data module y ( x,byte2 value 1...255 in byte2) store DBx00.00...15.15 (x = value 0...7 in byte1) in d byte1,byte2 module number y (y = value 1...255 in byte2) *) Influence on (C)arry and -- yesno change defined flag alteration undefined flag alte (Z)ero bit: ++ C *) Z *) 4 - 40

4.7. Types of operands PC Control 645-12M used as PLC As a matter of size, there are three types of operands in the PC Control 645-12M: -- 1bit operands -- 8bit operands (bytes) -- 16bit operands (words) The accumulator in the CPU of PC Control 645-12M can thus be used as 1bit, 8bit or 16bit register. Please do not confuse the term "accu(mulator)" in the software part which stands for a general-purpose register in the processor and the term as it is used in the hardware part where it stands for a rechargeable battery. -- 1bit operands are used for internal byte operations. Only bit 7 of the 8bit accu is evaluated, however. -- For 16bit operands, a 16bit accu is used which uses the above-mentioned 8bit accu as lowbyte. Word processing is triggered by commands that carry a "D" as their last character. In order to prevent mistakes, we recommend not to use different types of operands within operations that belong together. 4 - 41

4.7. Types of operands<br />

<strong>PC</strong> <strong>Control</strong> <strong>645</strong>-<strong>12M</strong> used as PLC<br />

As a matter of size, there are three types of operands in<br />

the <strong>PC</strong> <strong>Control</strong> <strong>645</strong>-<strong>12M</strong>:<br />

-- 1bit operands<br />

-- 8bit operands (bytes)<br />

-- 16bit operands (words)<br />

The accumulator in the CPU of <strong>PC</strong> <strong>Control</strong> <strong>645</strong>-<strong>12M</strong> can<br />

thus be used as 1bit, 8bit or 16bit register.<br />

Please do not confuse the term "accu(mulator)" in the software<br />

part which stands for a general-purpose register in<br />

the processor and the term as it is used in the hardware<br />

part where it stands for a rechargeable battery.<br />

-- 1bit operands are used for internal byte operations. Only<br />

bit 7 of the 8bit accu is evaluated, however.<br />

-- For 16bit operands, a 16bit accu is used which uses the<br />

above-mentioned 8bit accu as lowbyte. Word processing<br />

is triggered by commands that carry a "D" as their last<br />

character.<br />

In order to prevent mistakes, we recommend not to use different<br />

types of operands within operations that belong together.<br />

4 - 41

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

Saved successfully!

Ooh no, something went wrong!