15. ABSOLUTE POSITION DETECTION SYSTEM

(d)Slot arrangement

The sequence programs presented in this section show I/O numbers (X, Y) assuming the arrangement of modules on the main base unit is as illustrated below. A1SD71 is mounted at I/O slots 0 and 1, a 16-point input module at slot 2, and 16-point output module at slot 3. If the actual arrangement of the modules differs from this arrangement, change the X and Y numbers accordingly.

The numbers of the devices (M, D, T, etc.) used in the program can be changed as required.

I/O slot No. 0 1 2 3 4 5 6 7

supplyPower CPUA1S A1SD71

16-point output module 16-point input module

[Numbers used] X, X0-X, Y2F

Example arrangement of modules

(e)Points

1)The A1SD71 has 48 I/O points and occupies 2 slots. For I/O allocation using the GPP function, follow the instructions given below.

First slot: Vacant slot 16 points

Second slot: Special function module 32 points

2)To execute the FROM/TO instruction for the A1SD71, use the head I/O number of the second slot.

 

 

 

 

 

X30 to X3F

 

 

 

 

 

 

 

 

 

 

 

 

Y40 to Y4F

 

 

 

 

 

 

 

A1S

A1SD71

point-16input

module

point-16output module

 

 

 

 

 

 

 

 

CPU

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X,Y000 X,Y010

 

 

 

 

 

to

to

 

 

I/O numbers to be set

X,Y00F X,Y02F

 

 

with FROM/TO instruction

Note: The program example given

in (3) in this section is for 1-axis control. Slot allocations are as illustrated to the left. To use the system for 2-axis control, increase the number of I/O points.

Therefore, the I/O number to be set with the FROM/TO instruction is head I/O number allocated to the A1SD71 010H.

3)By setting "0 point of vacant slot" for the first slot of the A1SD71 in the "I/O allocation" of the GPP function, the 16 points in the first slot can be saved.

In this case, the I/O number to be set with the FROM/TO instruction is the same number as the head I/O number allocated to the A1SD71.

A1S

CPU

A1SD71

X,Y000

to I/O numbers to be set with FROM/TO instruction X,Y00F

15 - 23

Page 274
Image 274
Mitsubishi Electronics MR-J2S- A instruction manual Slot No 1 2 3 4 5 6