PREV_

Used to get the asset ID of a the previous (first upstream) asset from the Active Asset on a particular relationship.

Parameters

Relationship Name: The name of the relationship you want to use.

Property Name: The optional name of the property you want to display.

Example

This is often used to show information from neighbours. For instance, if you have machines feeding product to one-another, or similar machines in a row.

You could use the following code….

connection.Subscribe("[PREV_Sequence_Pressure]",function (val) {
		$('#temp').html(parseFloat(val).toFixed(1) + " kPa");		
	});	

This is replaced with the point code of the pressure of the asset that is upstream on the sequence relationship.

See Also

This is the opposite of the NEXT_ function.