Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
236 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
Pulse
Name:
Pulse
Syntax:
Pulse(TIME, DIGITAL_OUTPUT OUT);
Description:
Pulses the output high then low for the specified length of time (in hundredths of a 
second). When the pulse starts, a task switch is performed so other logic can be 
processed. If the output is already high, the SIMPL Windows logic processor will not 
see a change and no further actions will be triggered.
Parameters:
TIME is the number of hundredths of a second to pulse. For example, 500 specifies 
a 5-second delay.
OUT is a DIGITAL_OUTPUT that is to be pulsed.
Return Value:
None.
Example:
// A pulse of 525 hundredths of a second or 5.25 seconds
#define_constant MY_PULSE_TIME 525
 
DIGITAL_OUTPUT OutputToPulse;
 
PULSE(MY_PULSE_TIME, OutputToPulse);
This will execute immediately and output a pulse of 5.25 seconds to the digital output 
OutputToPulse.
Version:
SIMPL+ Version 1.00
NOTE: (X-Gen only)Elements of a DIGITAL_OUTPUT array cannot be used within 
the Pulse function.