Você está na página 1de 1

1.

Assign the logical drive number: 4,


select the module type: DMP-C.
2. To connect to the bus, set NCK Reset.
3. Set the number of analog inputs and outputs:
analog inputs: MD10300 = 2, analog outputs: MD 10310 = 1.
Set the number of digital inputs and output bytes:
3 bytes dig. inputs, of which 2 bytes are external, 1 byte internal:
4 bytes dig. outputs, of which 3 bytes are external, 1 byte internal:
4. Assign the analog inputs to the hardware:

MD 10362 [1] = 01040301


5. Assign the analog outputs to the hardware:
6. Assign the digital inputs to the hardware:

7. Assign the digital outputs to the hardware:

MD10350 = 3,
MD10360 = 4.

MD 10364 [0] = 01040101

MD 10368 [0] = 01040401


MD 10368 [1] = 01040502
8. Set the weighting factors for the analog inputs / outputs:
MD 10320 = 10000
MD 10330= 10000
9. Set the option: Programmed analog output
10. Program:
$A_OUTA [1] = 5000
(Set analog output 1 to 5000 mV)
FROM $A_INA [1] > 4000 DO $A_OUT [9] = TRUE
(If analog input 1 > 4000 mV, set output 9)
R1 = $A_INA [1]
(Set value of analog input 1 in R parameter 1)
DO $A_OUT [9] = FALSE
(Reset digital output 9)
DO $A_OUTA [1] = 0
(Set analog output 1 to 0 mV)

Você também pode gostar