5 PROGRAMMING
5 PROGRAMMING
The program creation procedures, basic read and write programs, and program
examples for A1S66ADA are explained.
When utilizing the program example introduced in this chapter for an actual system,
fully verify that there are no problems in controllability in the target system.
For details of instructions, refer to the ACPU Programming Manual.
5.1 Program Creation Procedures
The procedures to create programs are described using flowcharts.
5.1.1 Outputting digital values as voltage/current (D/A conversion)
The following flow shows the procedure to create a program that converts the digital
value input to CH1 and CH2 into analog values (voltage/current).
Digital value setting (Y00 to Y0B, Y10 to Y1B)
D/A conversion value output enable/disable
setting (Y0F, Y1F)
5.1.2 Receiving voltage/current as digital values (A/D conversion)
The following flow shows the procedure to create a program that converts the analog
values (voltage/current) input to CH3 to CH6 into digital values.
5 - 1
Start
Offset/gain value setting
End
Start
Digital output value read
(X00 to X0B, X10 to X1B, X20 to X2B, X30 to X3B)
End
···················· Initial setting
MELSEC-A
5
5 - 1