Digital Outputs

From Biemme Italia Wiki
Jump to: navigation, search

Relay Outputs

Pltouch Output Relay
Specifications Description
Output Type 8 Relay, dry contact
Circuit insulation Mechanical Insulation
Max Load Resistive load 3A Inductive load 80VA Lamp load 100W

The figure on the right contains the pin numbering of clamp X3.

Digital outputs are connected to 8 high quality relays. They work as C-NO.


 
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_main);
 
	analog1 = (TextView)findViewById(R.id.txtAnalog1);
	analog2 = (TextView)findViewById(R.id.txtAnalog2);
 
	pManager = new PltouchManager(this);
	pManager.setDebug(false);
	pManager.initialize(analog1, analog2);
 
	for (int i=1; i < 5; ++i){
		try {
			if (pManager.digitalRead(i) == DigitalValues.HIGH){
				pManager.digitalWrite(i, DigitalValues.LOW);
			}
		} catch (IndexOutOfBounds e) {
			Log.d(“Pltouch”, “Index not allowed”);
		}
	}
}

The previous code sets the 8 relays to LOW state if the corresponding input is HIGH.

Personal tools
Namespaces

Variants
Actions
Structure
Store