Solenoid valve in the single-chip microcomputer control procedures

by:AIRWOLF     2020-06-22
Electromagnetic valve in the application of single-chip microcomputer control yeser times today small make up to you to call a profound knowledge, interested can based on the electromagnetic valve carry on some simple control program, how to use the STCC singlechip microcomputer program code # include< reg。 h> sbit = P ^; / / switch under sbit b = P ^; / / rise sbit c = P ^; / / drop sbit d = P ^; / / launched a sbit e = P ^; / / lower limit a void main ( ) { =; / / on switch is normally open b =; / / up normally open c =; Normally open d = / / decline; / / limit switch normally open e =; / / lower limit switch is normally open while ( ) {/ / cycle if( = =) Statement execution {/ / decision on closing switches =; / / disconnect switch signal still perform down until touching the lower limit position switch c =; / / start falling} if( e = =) / / touching the lower limit position switch start { e =; / / lower limit a signal keep still perform increase c =; Electromagnetic valve b = / / disconnect decline; / / start up solenoid valve until touching the upper limit position switch} // if( d = =) / / run into upper limit position switch { P=xff; / / disconnect all} } } More knowledge please login solenoid valve factory. Solenoid valve factory, all the year round to electromagnetic valve, explosion-proof solenoid valve, solenoid valve, high-pressure steam solenoid valves, emergency shut-off valve, such as research and development, is the best place you choose solenoid valve
Custom message
Chat Online 编辑模式下无法使用
Leave Your Message inputting...