30.11.2012 Views

GE Fanuc Automation - Platforma Internetowa ASTOR

GE Fanuc Automation - Platforma Internetowa ASTOR

GE Fanuc Automation - Platforma Internetowa ASTOR

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Appendix<br />

A<br />

Typical Parameter Download Program<br />

This appendix describes how to set up and download parameters to the TCM from the PLC CPU.<br />

The parameters are stored in the PLC %R table and sent in a predefined group of 3 words to the<br />

TCM each sweep. It takes then 65 sweeps to update all the parameter data in the TCM on startup.<br />

The program to parse the configuration data and send it to a TCM can be set up as in the<br />

following programming example.<br />

In this example the TCM is configured at:<br />

%I0001 (length 64)<br />

%Q0001 (length 24)<br />

%AI0001 (length 28)<br />

%AQ0001 (Length 3)<br />

The parameter values to be sent to the TCM are located in %R0001 to %R0130. There are 16<br />

parameters per channel plus 2 diagnostic parameters. These 130 parameters are continuously sent<br />

(2 at a time) to the TCM to make sure the TCM always has the latest values.<br />

The Index into the register array is located in %R0200. It is initialized to 1 and incremented by 2<br />

each PLC scan. When it reaches 131 it is set back to 1 to repeat the process.<br />

The Group number for the TCM is located in %AQ0001. Dividing the Index number in % R0200<br />

by 2 each PLC scan creates it. The Group number has a range of 0 to 64.<br />

%R0001<br />

2 at a time<br />

based on<br />

Index In<br />

%R0130<br />

Index In = %R0200<br />

Group # = %AQ0001 = Index In / 2<br />

ARRAY<br />

MOVE<br />

In<br />

%R0200<br />

Out<br />

Index In %R0300<br />

1 Index Out<br />

2<br />

Logicmaster Subroutine-LD_TCM1<br />

GFK-1466 A-1<br />

Length<br />

MOVE<br />

LEN 2<br />

TCM<br />

%AQ0001<br />

%AQ0002<br />

%AQ0003

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

Saved successfully!

Ooh no, something went wrong!