28.08.2013 Views

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

11.2.11 PLC related variables<br />

PLCMSG<br />

PLCIn<br />

PLCOn<br />

PLCMn<br />

PLCRn<br />

PLCTn<br />

It should be borne in mind that the PLC has the following resources:<br />

(I1 thru I256) Inputs.<br />

(O1 thru O256) Outputs.<br />

M1 thru M5957) Marks.<br />

(R1 thru R499) 32-bit registers.<br />

(T1 thru T256) Timers with a timing count in 32 bits.<br />

(C1 thru C256) Counters with a count in 32 bits.<br />

If any variable is accessed which allows the status of a PLC variable to be read or modified<br />

(I,O,M,R,T,C), block preparation is interrupted and the <strong>CNC</strong> waits for this command to be executed<br />

in order to restart block preparation.<br />

Read-only variables<br />

Returns the number of the active PLC message with the highest priority and will coincide with the<br />

number displayed on screen (1··128). If there is none, it returns 0.<br />

(P110=PLCMSG)<br />

It assigns to P100 the number of the active PLC message with the highest priority.<br />

Read-and-write variables<br />

This variable allows 32 PLC inputs to be read or modified starting with the one indicated (n).<br />

The value of the inputs which are used by the electrical cabinet cannot be modified as their values<br />

are determined by it. Nevertheless, the status of the remaining inputs can be modified.<br />

This variable allows 32 PLC outputs to be read or modified starting from the one indicated (n).<br />

(P110=PLCO 22)<br />

It assigns to parameter P110 the value of outputs O22 through O53 (32 outputs) of the PLC.<br />

(PLCO 22=$F)<br />

It sets outputs O22 through O25 to "1" and outputs O26 through O53 to "0".<br />

Bit 31 30 29 28 27 26 25 24 23 22 ... 5 4 3 2 1 0<br />

0 0 0 0 0 0 0 0 0 0 .... 0 0 1 1 1 1<br />

Output 53 52 51 50 49 48 47 46 45 44 .... 27 26 25 24 23 22<br />

This variable allows 32 PLC marks to be read or modified starting from the one indicated (n).<br />

This variable allows the status of 32 register bits to be read or modified starting from the one indicated<br />

(n).<br />

This variable allows the timer count to be read or modified starting from the one indicated (n).<br />

<strong>Programming</strong> <strong>manual</strong><br />

HIGH-LEVEL LANGUAGE PROGRAMMING<br />

Variables 11.<br />

<strong>CNC</strong> <strong>8035</strong><br />

·T· MODEL<br />

(SOFT V16.3X)<br />

·237·

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

Saved successfully!

Ooh no, something went wrong!