Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
B-52
6 Changing Input Characteristics
6.1 Procedure for Changing Input Characteristics
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4AD/FX3UC-4AD (4-channel Analog Input)
5 Create a sequence program.
To change the input characteristics, write the offset data (BFM #41 to #44) and the gain data (BFM
#51 to #54) in the sequence program, and then turn on the corresponding bit of BFM #21 for the
corresponding channel. The following example shows a program for the unit number 0.
Example: Program for changing the input characteristics of channels 1 and 2 (For FX3U, FX3UC Series
PLCs):
*1. It takes approximately 5 seconds to change the input mode (BFM #0). This is because all the set
values should be changed.
After changing the input mode, be sure to wait for 5 seconds or more before setting other data.
The input characteristics of each channel can be written in BFM #21. It is also possible to perform
batch writing of input characteristics for two or more channels.
6 Transfer the sequence program to change the input characteristics.
Transfer the sequence program, and start the PLC.
Start the PLC, and turn on the command (X000) to write the input characteristics. In approx. 5 sec-
onds, the offset data and the gain data will be written.
Since the offset data and the gain data are stored in the 4AD EEPROM, it is possible to delete the
sequence program.
7 Read out the analog data to check the data.
Create the following program to check the stored data (For FX3U, FX3UC Series PLCs):
If data is not stored properly, refer to Chapter 8 "Troubleshooting".
X000
FNC 12
MOV
HFF00 U0\G0
P
SET M0
M0
T0
FNC 16
FMOV
K1000 U0\G41 K2
P
FNC 16
FMOV
K3000 U0\G51 K2
P
FNC 12
MOV
H0003 U0\G21
P
RST M0
Input mode specification
for channels 1 to 4
Offset value of
channels 1 and 2
Gain value of
channels 1 and 2
Batch writing of offset and gain
values of channels 1 and 2
Command for writing input characteristics
K50
T0
*1
M8000
FNC 16
BMOV
U0\G10 D0 K4
The digital values set for
channels 1 to 4 will be read
out to D0 to D3.
RUN monitor