3G3MX2-V2: My PSET function isn't working!
Simple Position control through Drive Programming
Scenario
You are attempting to use simple position control on an MX2-V2 inverter, using Drive Programming. Specifically, you want to use the PSET function to load a preset position from parameter P083 to the current position in D030.
The intent of this function is to allow the inverter to compensate for drift, or for loading an origin that is not the standard origin of the inverter.
Issue
The PSET function does not function through Drive Programming on the MX2-V2 inverters. It does still function appropriately on the MX2-V1 inverters.
Solution
There are multiple solutions to this issue, please select one that is appropriate to your specific situation.
- Use the PCLR function. This function still works in Drive Programming on the MX2-V2 inverters. This function clears the d030 parameter, effectively setting it to the standard origin of the inverter. This solution is only appropriate if the desired origin is the original origin.
- Use the multifunction inputs to trigger the PSET function. The PSET function can still be activated through a signal from one of the multifunction inputs (S1 through S7). Connect a wire to the desired input terminal, and set the respective C parameter (C001 through C007) to 91: PSET.
- A signal can be sent from an external source (refer to the MX2 manual for details on wiring configuration), or,
- A signal can be sent from one of the MX2's multifunction outputs, and triggered using Drive Programming. Connect an output terminal (P1 or P2) to the desired input terminal (see the MX2 manual for wiring configuration details), then set parameter C021 or C022 (for P1 or P2 respectively), to ‘General Purpose Output’ (44 through 46). This general purpose output can then be switched on using Drive Programming, and thereby trigger the PSET function through the multifunction input.
- If there are insufficient multifunction inputs in your application for the previous solution to work, consider a multiplexed solution using Drive Programming, such as the following code extract:
entry
'Preset
P083 := 100 'Preset Position Data
C007 := 91 'PSET
C017 := 1 'NC
'Set back to the original value.
C017 := 0 'NO
C007 := 6 'JG
end
This code will temporarily set the S7 multifunction input to the PSET function, as well as setting it to being a normally closed switch. Assuming that there is no signal to S7, this will immediately load the contents of P083 (in this case 100) to D030. Following this, the program will reset S7 to a normally open switch, with its previous function setting (in this case 6, or the Jog command).
Note that the lines involved in setting the S7 input back to its original value will have to be customised based on your specific application. It is also strongly recommended to use a multifunction input that is set to a function that is not required at the same time as the PSET function.