Download Channel Isolated Digital-Analog Converter Module User`s Manual
Transcript
4 SETUP AND PROCEDURES BEFORE OPERATION (a) When switching the mode using the dedicated instruction (G(P).OFFGAN) The following sample program switches to the offset/gain setting mode with the dedicated instruction (G(P).OFFGAN), changes the channel where offset/gain setting will be made, adjusts the offset/gain values, and writes the offset/gain values to the Q66DA-G. Switches to offset/gain setting mode Stores setting of dedicated instruction (G.OFFGAN) into D2. Dedicated instruction (G.OFFGAN) Switch to the channel where offset/gain settings will be performed Stores channel where offset/ gain setting will be made into D0. \ Offset/gain range setting. \ Specifies offset setting channel. Set the amount of each change within the range from .-3000 to 3000 during adjustment \ Sets 0 to buffer memory address 23. \ Sets 0 to buffer memory address 22. \ Specifies gain setting channel. Turns ON channel change request (YB). Turns OFF channel change request (YB). Set the amount of each change within the range from -3000 to 3000 during adjustment Set offset value adjustment to D1. \ Set D1 to buffer memory address 24. Adjust the analog output value Turn ON Set value change request (YC). Turn OFF Set value change request (YC). Register the result of offset/gain settings in the module Turns ON user range change request (YA). Turns OFF user range change request (YA). Switches to normal mode Stores setting of dedicated instruction (G.OFFGAN) into D2. Dedicated instruction (G.OFFGAN) Processing in normal mode The program in the dotted area is a common program. 4 - 14 4.6 Offset/Gain Settings