Need a little help understanding M files. I have an SLC 5/03 with a 1747-SN in slot 4. On the other end are two racks, one 3/4 and the other a 1/2 rack. Each has a 1747-ASB Ser A in slot 0.
In the 3/4 rack:
1747-ASB
16 point 120VAC input
8 point 120VAC input
8 point relay output
8 point relay output
1746-NI4
1746-NI4
in that order from slot 0 to slot 6
1747-ASB dip switch settings in this rack:
SW1 - All on
SW2 - All on except 3 and 7
SW3 - only 2 and 5 on
In the 1/2 rack:
1747-ASB
16 point 120VAC input
8 point relay output
1746-NI4
8 point relay output
In that order from slot 0 to slot 4
(This is actually a 7 slot rack but the last 2 slots are empty and the G file is configured as a 1/2 rack)
1747-ASB dip switch settings in this rack:
SW1 - All on except 6
SW2 - All on except 3 and 8
SW3 - only 2 and 5 on
So....in the program there is a COP instruction reading #M1:4.310 and copying it to an integer location. This seems to me to be reading channel one of the second NI4 in the 3/4 rack (slot 6). This is an analog pressure transmitter. My question is, how was it determined that .310 of the M1:4 file was the place to get the value of channel 1 of the NI4 in slot 6 of the 3/4 rack?
Thanks,
Shawn
In the 3/4 rack:
1747-ASB
16 point 120VAC input
8 point 120VAC input
8 point relay output
8 point relay output
1746-NI4
1746-NI4
in that order from slot 0 to slot 6
1747-ASB dip switch settings in this rack:
SW1 - All on
SW2 - All on except 3 and 7
SW3 - only 2 and 5 on
In the 1/2 rack:
1747-ASB
16 point 120VAC input
8 point relay output
1746-NI4
8 point relay output
In that order from slot 0 to slot 4
(This is actually a 7 slot rack but the last 2 slots are empty and the G file is configured as a 1/2 rack)
1747-ASB dip switch settings in this rack:
SW1 - All on except 6
SW2 - All on except 3 and 8
SW3 - only 2 and 5 on
So....in the program there is a COP instruction reading #M1:4.310 and copying it to an integer location. This seems to me to be reading channel one of the second NI4 in the 3/4 rack (slot 6). This is an analog pressure transmitter. My question is, how was it determined that .310 of the M1:4 file was the place to get the value of channel 1 of the NI4 in slot 6 of the 3/4 rack?
Thanks,
Shawn