VXI VT1538A user manual SOURcePULMSTATe, Parameters, Send with VXIplug&play Function hpe14XXcmd

Page 73
Usage See “Stepper Motor Control” on page 37.

can be directly driven by the SCP. See Figure 29 for a connection diagram that also shows the required user-supplied output protection components.

<ch_list> specifies the channels that will control stepper motors. The channels referenced can be on more than one E1538. The channels must be in ascending order. Based on the <mode> parameter, the channels will be arranged into adjacent groups of 2 ("...C2"), or 4 ("...C4") channels. These groups can not be split across SCPs.

The algorithm can send new position values to the first channel in a motor-group. The algorithm will read the current position value from the second channel in the motor-group. Related error messages: 3115, "Channels specified are not in ascending order."

3116, "Multiple channels specified are not grouped correctly." 3117, "Grouped channels are not adjacent."

Send with VXIplug&play Function: hpe14XX_cmd(...)

Usage See “Stepper Motor Control” on page 37.

preset count to 0, full step, half speed, 4 channel, min speed 64s/s,

max speed 256s/s (in half speed mode, actual speed=half specified speed) SOUR:FUNC:STEP 0,MFSFC4,128,512,(@144:147)

SOURce:PULM[:STATe]

1SOURce:PULM[:STATe] <enable>,(@<ch_list>) enable the pulse width

modulated mode for the PULSe channels in <ch_list>.

Parameters

 

 

 

 

 

 

 

Parameter

Parameter

Range of

Default

 

 

Name

Type

Values

Units

 

 

 

 

 

 

 

 

enable

boolean (uint16)

1 0 ON OFF

none

 

 

 

 

 

 

 

 

ch_list

string

100 - 163

none

 

 

 

 

 

 

 

 

 

 

 

 

 

Comments This command is coupled with the SOURce:FM command. If the FM state is enabled then the PULM state is disabled. If the PULM state is enabled then the FM state is disabled. If both the FM and the PULM states are disabled then the PULSe channel is in the single pulse mode.

If the channels specified are not on a Frequency/Totalize SCP, an error will be generated.

*RST Condition: SOUR:PULM:STATE OFF

Send with VXIplug&play Function: hpe14XX_cmd(...)

Agilent E1538A Enhanced Frequency/Totalize/PWM SCP 69

Image 73
Contents Irvine, CA 949 82-0093-000 Release April 28 VXI Technology, Inc 2031 Main StreetENHANCED FREQUENCY/TOTALIZE/ PWM SIGNAL CONDITIONING PLUG-ON VT1538AVXI Technology, Inc Dynamic DAC Products INTRODUCTIONStatic DAC Products VXI Technology World Headquarters SUPPORT RESOURCESVXI Technology Cleveland Division VXI Technology Lake Stevens Instrument DivisionSignal Conditioning Plug-on User’s and SCPI Programming ManualAgilent Technologies E1538A Enhanced Frequency/Totalize/PWM Agilent 75000 Series CPage Agilent E1538A Enhanced Frequency/Totalize/PWM SCP About this ManualIntroduction Identifying the Plug-on IMPORTANT Configuring Input- Output direction Setting Configuration SwitchesConfiguring Channel Pull-up Resistor Connecting To The Terminal Module InstallationFigure 4. E1419A Option 11 Terminal Module Connections Recommended Signal Connections8 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Input and Output Characteristics VRS Mode Input Operation SCP channels 0 & 1 only Programming With SCPI Commands Configuring I/O Direction Configuring the ChannelsSetting the Input Threshold Level Checking the ID of the SCPreturns threshold value Determining the Input Threshold LevelTo set channels 40 through 43 to input digital states Reading Static Digital StateTotalize Positive or Negative Edge State Changes About Period and Frequency Measurements To measure frequency at channel 45 with aperture of 1 second For PERiod function, the E1538 spports two distinct measurement ranges To measure period at channel 45 as the average of 1000 signal periods chlist specifies the channels that will read pulse widths Sense Quadrature Position The value read by the algorithm can range from Example of Rotational Velocity Sense Controlling Output Polarity Programming Output ChannelsOutput Static Digital State Variable Width Pulse Per Trigger Figure 17. Output Pulse-Width-Modulated Signal Variable Width Pulse Train PWM26 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Variable Frequency Fixed Width Pulse Train FM Figure 19. Output Square Wave Variable Frequency FM Variable Frequency Square-Wave Pulse Train FM28 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Rotationally Positioned Pulse Output Rotational Pulse Command Usage Rotational Pulse Mode Variable Angular Position, Preset Pulse Width by angleExample of variable position, preset width Variable Angular Position, Preset Pulse Width by timeFigure 21. Variable Position, Width Preset by Angle 32 Agilent E1538A Enhanced Frequency/Totalize/PWM SCPFigure 22. Variable Position, Width Preset by Time Variable Pulse Width by angle, Preset Angular Position34 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Example of variable width by angle, preset positionExample of variable width by time, preset position Variable Pulse Width by time, Preset Angular Positionpreset ch 47 pulse width to 15ms preset ch 46 pulse width to 10msFigure 24. Fixed Position, Variable Width by Time 36 Agilent E1538A Enhanced Frequency/Totalize/PWM SCPStepper Motor Control Use the command motor phase channel group can not be split across SCPs Figure 28. Half Step Mode, Full Speed, 4-Channel Figure 27. Full Step Mode, Full and Half Speed, 4-Channel40 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Figure 29. Directly Driving 4-Phase Stepper MotorsRST and *TST important Command Syntax SCPI Command ReferenceFor newer PageDiscussed INPutPOLarity? INPutPOLarityParameters CommentsINPutTHResholdLEVel level can be set to a resolution ofINPutTHResholdLEVel? OUTPutPOLarity? OUTPutPOLaritySend with VXIplug&play Function hpe14XXcmdReal64Q generatedRST Condition .001 sec Send with VXIplug&play Function hpe14XXcmd SENSeFREQuencyAPERtureSENSeFREQuencyAPERture? Related Commands SENSFREQAPERSENSeFREQuencyLIMitLOWer INIT SENSeFREQuencyLIMitLOWer? Related Commands INPutPOLaritySENSeFUNCtionCONDition Returned Value .01667 to 250, The type is float32SENSeFUNCtionPERiod SENSeFUNCtionFREQuencySENSeFUNCtionQUADrature SENSeFUNCtionPWIDthUsage See “Sense Quadrature Position” on page SENSeFUNCtionRVELocity54 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Usage See “Sense Rotational Velocity” on pageUsage See “Totalize Positive or Negative Edge State Changes” on page SENSeFUNCtionTOTalizeSENSePERiodAPERture SENSePERiodLIMitUPPer SENSePERiodAPERture?58 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SENSePERiodMODE SENSePERiodLIMitUPPer?RST Condition is “APERture” SENSePERiodMODE mode,@chlist selects the measurementSENSePERiodMODE? Related Commands SENSePERiodMODESENSePERiodNPERiods interval mode currently set for period measurementSENSePERiodRANGeUPPer SENSePERiodNPERiods?Send with VXIplug&play Function hpe14XXcmdInt32Q SENSePERiodRANGeUPPer? SENSeTOTalizeRESetMODERST Condition is Send with VXIplug&play Function hpe14XXcmd SOURceFMSTATe SENSeTOTalizeRESetMODE?Send with VXIplug&play Function hpe14XXcmdInt16Q SOURceFMSTATe?SOURceFUNCtionRPULse SOURceFUNCtionSHAPePULSe SOURceFUNCtionSHAPeCONDitionSOURceFUNCtionSTEPper SOURceFUNCtionSHAPeSQUareComments Send with VXIplug&play Function hpe14XXcmd Figure 31. Relationship of minvel, and maxvel Table 3. Stepping mode values68 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Usage See “Stepper Motor Control” on page SOURcePULMSTATeSOURcePULSePERiod SOURcePULMSTATe?SOURcePULSeWIDTh SOURcePULSePERiod?SOURceRPULsePOSitionANGLe SOURcePULSeWIDTh?33,554,430 to 33,554,430 SOURRPULseVARType SOURceRPULsePOSitionANGLe?Usage SOURceRPULseWIDThANGLe SOURRPULseVARType?74 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SOURceRPULseWIDThTIME SOURceRPULseWIDThANGLe?00000787 to Usage SOURRPULSEWIDTTIME? @147 SOURceRPULseWIDThTIME?76 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP General Specifications SpecificationsOutput Characteristics Input CharacteristicsResolution Hz 1 mSec to 1 Second, resolutionTotalizer Frequency MeasurementPulse Width Measure Rotational Velocity MeasureFrequency Source Pulse SourceRotational Pulse Source Characteristics80 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Extra Tooth Wheel