Program Example Used When Utility Package Is Not Used - Mitsubishi Q64RD User Manual

Thermocouple input module melsec-q series
Hide thumbs Also See for Q64RD:
Table of Contents

Advertisement

6 PROGRAMMING

6.1.2 Program example used when utility package is not used

6 - 3
(2) Program example
MELSEC-Q
[Error occurrence]
Outputs error code in BCD.
Outputs error occurrence
to module outside.
[Error clear]
Turns on error reset signal (X10).
Turns off error reset signal (X10)
when error occurred signal turns off.
[Operation condition setting]
Enables all channels for conversion.
CH.2 average no. of times = 500 times
CH.3 average time = 1000ms
Sets CH.1 and CH.4 for sampling process,
CH.2 for no. of times average process, and
CH.3 for time average process.
Turns on operation condition setting request (Y9).
Turns off operation condition setting request (Y9).
Turns on initial setting completed flag (X20).
[Error occurrence]
Reads error code.
Outputs error code in BCD.
Outputs error occurrence to module outside.
[Error clear]
Turns on error reset signal (X10).
Turns off error reset signal (X10)
when error occurred signal turns off.
[Temperature detection]
Reads conversion completed signal
if temperature detection command
signal (X11) turns on.
Reads to D20-D23 the temperature
conversion values (16 bits) of channels
whose conversions were completed.
6 - 3

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents