28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXTENDED REGISTER GROUPS<br />

PutLONG<br />

PutINT<br />

PutSCHAR<br />

GetDWORD<br />

GetWORD<br />

GetBYTE<br />

GetLONG<br />

GetINT<br />

GetSCHAR<br />

Will write a 32 bit signed value.<br />

Will write a 16 bit signed value.<br />

Will write an 8 bit signed value.<br />

Will read a 32 bit unsigned value.<br />

Will read a 16 bit unsigned value.<br />

MANIPULATE THE ANYBUS INPUT BUFFER<br />

<strong>of</strong>fs = 0..479 (index into data array<br />

AnyBusIN putDWORD Reg, <strong>of</strong>fs<br />

AnyBusIN putWORD Reg, <strong>of</strong>fs<br />

AnyBusIN putBYTE Reg, <strong>of</strong>fs<br />

AnyBusIN putLONG Reg, <strong>of</strong>fs<br />

AnyBusIN putINT Reg, <strong>of</strong>fs<br />

AnyBusIN putSCHAR Reg, <strong>of</strong>fs<br />

AnyBusIN getDWORD Reg, <strong>of</strong>fs<br />

AnyBusIN getWORD Reg, <strong>of</strong>fs<br />

AnyBusIN getBYTE Reg, <strong>of</strong>fs<br />

AnyBusIN getLONG Reg, <strong>of</strong>fs<br />

AnyBusIN getINT Reg, <strong>of</strong>fs<br />

AnyBusIN getSCHAR Reg, <strong>of</strong>fs<br />

MANIPULATE THE ANYBUS OUTPUT BUFFER<br />

SAnyBus<br />

Data in the OutPut buffer is received on the field bus. When a field bus ’receive’ is<br />

completed then the entire field bus frame is stored in the OUTPUT buffer and a PL<br />

interrupt is generated. The instructions below are used to manipulate the AnyBus<br />

output buffer.<br />

<strong>of</strong>fs = 0..479 (index into data array<br />

AnyBusOUT putDWORD Reg, <strong>of</strong>fs<br />

AnyBusOUT putWORD Reg, <strong>of</strong>fs<br />

AnyBusOUT putBYTE Reg, <strong>of</strong>fs<br />

AnyBusOUT putLONG Reg, <strong>of</strong>fs<br />

AnyBusOUT putINT Reg, <strong>of</strong>fs<br />

AnyBusOUT<br />

putSCHAR Reg, <strong>of</strong>fs<br />

Will read an 8 bit unsigned value.<br />

Will read a 32 bit signed value.<br />

Will read a 16 bit signed value.<br />

Will read an 8 bit signed value.<br />

Data in the InPut buffer is to be transmitted onto the field bus. These instructions<br />

can manipulate data in a specified location <strong>of</strong> a field bus frame. The instructions<br />

below are used to manipulate the AnyBus input buffer.<br />

AnyBusOUT getDWORD Reg, <strong>of</strong>fs<br />

AnyBusOUT getWORD Reg, <strong>of</strong>fs<br />

AnyBusOUT getBYTE Reg, <strong>of</strong>fs<br />

AnyBusOUT getLONG Reg, <strong>of</strong>fs<br />

AnyBusOUT getINT Reg, <strong>of</strong>fs<br />

AnyBusOUT getSCHAR Reg, <strong>of</strong>fs<br />

TRANSFERS THE ANYBUS INPUT BUFFER<br />

Put 32 bit unsigned data from register Reg at index <strong>of</strong>fs.<br />

Put 16 bit unsigned data from register Reg at index <strong>of</strong>fs.<br />

Put 8 bit unsigned data from register Reg at index <strong>of</strong>fs.<br />

Put 32 bit signed data from register Reg at index <strong>of</strong>fs.<br />

Put 16 bit signed data from register Reg at index <strong>of</strong>fs.<br />

Put 8 bit signed data from register Reg at index <strong>of</strong>fs.<br />

Get 32 bit unsigned data from index <strong>of</strong>fs and store in register Reg .<br />

Get 16 bit unsigned data from index <strong>of</strong>fs and store in register Reg .<br />

Get 8 bit unsigned data from index <strong>of</strong>fs and store in register Reg .<br />

Get 32 bit signed data from index <strong>of</strong>fs and store in register Reg .<br />

Get 16 bit signed data from index <strong>of</strong>fs and store in register Reg .<br />

Get 8 bit signed data from index <strong>of</strong>fs and store in register Reg .<br />

Put 32 bit unsigned data from register Reg at index <strong>of</strong>fs.<br />

Put 16 bit unsigned data from register Reg at index <strong>of</strong>fs.<br />

Put 8 bit unsigned data from register Reg at index <strong>of</strong>fs.<br />

Put 32 bit signed data from register Reg at index <strong>of</strong>fs.<br />

Put 16 bit signed data from register Reg at index <strong>of</strong>fs.<br />

Put 8 bit signed data from register Reg at index <strong>of</strong>fs.<br />

Get 32 bit unsigned data from index <strong>of</strong>fs and store in register Reg.<br />

Get 16 bit unsigned data from index <strong>of</strong>fs and store in register Reg.<br />

Get 8 bit unsigned data from index <strong>of</strong>fs and store in register Reg.<br />

Get 32 bit signed data from index <strong>of</strong>fs and store in register Reg.<br />

Get 16 bit signed data from index <strong>of</strong>fs and store in register Reg.<br />

Get 8 bit signed data from index <strong>of</strong>fs and store in register Reg.<br />

AnyBusIO Send Send the buffer onto the fieldbus<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />

187

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

Saved successfully!

Ooh no, something went wrong!