News CNCnetPDM About us Support  
         
  

CNC_RDPOSERRS2 | MOTOR

Description

Reads "The position deflection S1, S2 for spindle adjustment" in the synchronous control mode.

The position deflection S1, S2 is valid only during the synchronous control mode.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

#include "fwlib32.h" or "fwlib64.h"

FWLIBAPI short WINAPI cnc_rdposerrs2(unsigned short FlibHndl,ODBPSER *pser);

Arguments

FlibHndl   [ in ]

Specify the library handle. See "Library handle" for details.

pser   [ out ]

Pointer to the ODBPSER structure including the position deflection S1, S2 for spindle adjustment. The ODBPSER structure is as follows.

typedef struct odbpser {
    long    poserr1 ;       /* position deflection S1 */
    long    poserr2 ;       /* position deflection S2 */
} ODBPSER ;

Return

EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.

The major error codes are as follows.

Return code Meaning/Error handling
EW_NOOPT
(6)
no option
The serial spindle function and the extended driver/library function are necessary.

As for the other return codes or the details, see "Return status of Data window function"

CNC option

This function need the following CNC option.

    The serial spindle function is necessary.

And this function is related to the following CNC option.

  • The spindle orientation function
  • The rigid tapping function
  • The Cs contouring control function
  • The spindle positioning function (only Series 16T/18T/21T, 16iT/18iT/21iT, 0i-F, 30i)
  • The multi spindle control (only Series 16T/18T/21T, 16iT/18iT/21iT, 0i-F, 30i)

For HSSB connection,

    The extended driver/library function is necessary.

For Ethernet connection,

    The Ethernet function and the extended driver/library function are necessary.

    However, in case of Series 16i/18i/21i-B, 0i-B/C/D/F, Series 30i and PMi-A, the required CNC option is as follows.

    When Embedded Ethernet is used,

      above two optional functions are not required.

    When Ethernet board is used,

      only Ethernet function is required.

CNC parameter

This function is related to the following CNC parameter.
See the manual of CNC parameter for details.

  • Series 15
  • Parameters concerning the serial spindle output function and the Cs contouring control function.
    Parameters concerning the spindle control function.
  • Series 16/18/21, 16i/18i/21i, 0i, 30i, Power Mate i
  • Parameters concerning the spindle control function.

CNC mode

This function can be used in any CNC mode.

Available CNC

0i-A 0i-B/C(Note) 0i-D 0i-F 15 15i 16 18 21 16i-A 18i-A 21i-A 16i-B 18i-B 21i-B 30i-A 30i-B
M (Machining)H O O O H X H H X O O O O O O O O
T (Turning) H O O O H - H H X O O O O O O O O
LC (Loader) - - - - - - X X X X X X X X X - -

0i-D0i-F16i18i30i-A30i-B
P (Punch press)X X O O - X
L (Laser) - - O - - O
W (Wire) - - X X X X


Power Mate i-DE
Power Mate i-HX
Power Motion i-AX

"O" : Both Ethernet and HSSB
"E" : Ethernet
"H" : HSSB
"X" : Cannot be used
"-" : None

Note) 0i-C does not support the HSSB function.

Privacy notice

This website uses cookies. By continuing to use it you agree to our privacy policy. 

https://www.inventcom.net/fanuc-focas-library/motor/cnc_rdposerrs2
Fanuc Focas Library | Motor | cnc_loadtorq
Description Reads abnormal load torque data (estimated load torque) of servo motors or spindle motors. Data is stored in ODBLOAD structure in signed binary form. motor... [read more]
cnc_loadtorq
Fanuc Focas Library | Motor | cnc_rdctrldi
Description Reads "control input signal for spindle monitor".... [read more]
cnc_rdctrldi
Fanuc Focas Library | Motor | cnc_rdctrldo
Description Reads "control output signal for spindle monitor".... [read more]
cnc_rdctrldo
Fanuc Focas Library | Motor | cnc_rdcurrent
Description Reads "The servo adjustment real current". When the following parameter is '0', '0' is... [read more]
cnc_rdcurrent
Fanuc Focas Library | Motor | cnc_rdfromservoid2
Description Read specified servo id information from FROM. Each information is stored in member of the ODBCSVID2 structure.... [read more]
cnc_rdfromservoid2
Fanuc Focas Library | Motor | cnc_rdfromspindleid2
Description Read specified spindle id information from FROM. Each information is stored in member of the ODBCSPID2 structure.... [read more]
cnc_rdfromspindleid2
Fanuc Focas Library | Motor | cnc_rdloopgain
Description Reads "The servo adjustment loop gain".... [read more]
cnc_rdloopgain
Fanuc Focas Library | Motor | cnc_rdnspdl
Description Reads the number of spindles which CNC can control. It is not the number of mounted spindles.... [read more]
cnc_rdnspdl
Fanuc Focas Library | Motor | cnc_rdopmode
Description Reads "The operation mode for spindle adjustment".... [read more]
cnc_rdopmode
Fanuc Focas Library | Motor | cnc_rdposerrs
Description Reads "The position deflection S for spindle adjustment". The position deflection S is valid only when... [read more]
cnc_rdposerrs
Fanuc Focas Library | Motor | cnc_rdposerrz
Description Reads "The position deflection Z for spindle adjustment" in the rigid tapping mode. The position... [read more]
cnc_rdposerrz
Fanuc Focas Library | Motor | cnc_rdservoid2
Description Read specified servo id information from adaptation device. Each information is stored in member of the ODBCSVID2 structure.... [read more]
cnc_rdservoid2
Fanuc Focas Library | Motor | cnc_rdspdlalm
Description Reads the alarm number corresponding to the message of "spindle alarm for spindle monitor".... [read more]
cnc_rdspdlalm
Fanuc Focas Library | Motor | cnc_rdspindleid2
Description Read specified spindle id information from adaptation device. Each information is stored in member of the ODBCSPID2 structure.... [read more]
cnc_rdspindleid2
Fanuc Focas Library | Motor | cnc_rdsrvspeed
Description Reads "The servo adjustment real speed".... [read more]
cnc_rdsrvspeed
Fanuc Focas Library | Motor | cnc_rdsynerrrg
Description Reads "The synchronous error for spindle adjustment" in the rigid tapping mode. The synchronous error... [read more]
cnc_rdsynerrrg
Fanuc Focas Library | Motor | cnc_rdsynerrsy
Description Reads "The synchronous error for spindle adjustment" in the synchronous control mode. The synchronous... [read more]
cnc_rdsynerrsy
Fanuc Focas Library | Motor | cnc_sdtcancelsmpl
Description Cancel of sampling is notified. If you want to cancel the sampling after sampling starts, execute this function. This function can be... [read more]
cnc_sdtcancelsmpl
Fanuc Focas Library | Motor | cnc_sdtclrchnl
Description The channel data setting for sampling is cleared. When you change the channel data number for sampling, beforehand execute this... [read more]
cnc_sdtclrchnl
Fanuc Focas Library | Motor | cnc_sdtendsmpl
Description The end of sampling is notified. In case that the error occurred by cnc_sdtreadsmpl, execute this function.... [read more]
cnc_sdtendsmpl
Fanuc Focas Library | Motor | cnc_sdtendsmpl2
Description The end of sampling is notified. In case that the error occurred by cnc_sdtreadsmpl2, execute this function.... [read more]
cnc_sdtendsmpl2
Fanuc Focas Library | Motor | cnc_sdtread1shot
Description Read the data for 8 channels that are set by cnc_sdtsetchnl function.... [read more]
cnc_sdtread1shot
Fanuc Focas Library | Motor | cnc_sdtreadsmpl
Description Reads the sampling data. (The cycle of sampling is 1msec.)... [read more]
cnc_sdtreadsmpl
Fanuc Focas Library | Motor | cnc_sdtreadsmpl2
Description Reads the sampling data. In case of using cnc_sdtstartsmpl2, acquire data immediately after the function call by this function. Trigger... [read more]
cnc_sdtreadsmpl2
Fanuc Focas Library | Motor | cnc_sdtsetchnl
Description The channel data for the sampling of various data of Servo and Spindle are set. As for the data which can be acquired, refer to... [read more]
cnc_sdtsetchnl
Fanuc Focas Library | Motor | cnc_sdtsetchnl2
Description The channel data for the sampling of various data are set. The setting to acquire servo, spindle information and ,in addition, PMC signal and CNC... [read more]
cnc_sdtsetchnl2
Fanuc Focas Library | Motor | cnc_sdtstartsmpl
Description The start of sampling is notified. When the block of the specified sequence number is executed, sampling is... [read more]
cnc_sdtstartsmpl
Fanuc Focas Library | Motor | cnc_sdtstartsmpl2
Description The start of sampling is notified. In case of cnc_sdtstartsmpl, start sampling after... [read more]
cnc_sdtstartsmpl2
Fanuc Focas Library | Motor | cnc_wrfromservoid2
Description Write specified servo id information to FROM.... [read more]
cnc_wrfromservoid2
Fanuc Focas Library | Motor | cnc_wrfromspindleid2
Description Write specified spindle id information to FROM.... [read more]
cnc_wrfromspindleid2
Fanuc Focas Library | Motor | flist_Motor
CNC: Function related to servo/spindle... [read more]
flist_Motor
Modified: 2018-06-11