Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Connector for FANUC Focas

pmc_rdpmcrng

  • Last UpdatedFeb 23, 2023
  • 2 minute read

The connector reads one byte of PMC range data with the pmc_rdpmcrng function and the parameter defined as the following formats:

  • If a bit position is configured: <Address Type><Address Number>.<Bit Position>

  • If no bit position is configured: <Address Type><Address Number>

For example:

  • R00381.4 refers to PMC range data with:

    • Address Type: R

    • Address Number: 00381

    • Bit Position: 4 (the 5th bit of the data byte)

  • F0012 refers to PMC range data with:

    • Address Type: F

    • Address Number: 0012

    • No bit position configured; take the whole byte.

By default the data returned for a PMC range is converted to Int32 type.

Address Type

The following table includes all address types that are supported by the connector. The function parameter must start with one of the following address types in order to be valid:

Address Type

ID Code

Description

G

0

Output signal from PMC to the CNC machine

F

1

Input signal to PMC from the CNC machine

Y

2

Output signal from PMC to the machine

X

3

Input signal to PMC from the machine

A

4

Message display or message demand (depends on CNC machine type)

R

5

Internal relay or system relay (depends on CNC machine type)

T

6

Variable timer

K

7

Keep relay

C

8

Counter

D

9

Data table

M

10

Input signal from other PMC path

N

11

Output signal to other PMC path

E

12

Extra relay

Z

13

System relay

Address Number

The connector takes an unsigned short integer to form the address number component of the parameter. The connector takes whatever value you configure as the address number and sends it to the machine, as long as the number is a valid unsigned short. The availability of data for that address number is depended on the actual CNC machine.

Note: The connector does not perform range check for the address number. Refer to the pmc_rdpmcrng function information in the FANUC Focas library documentation on the valid range of address number for different address types and different CNC machine types.

Bit Position

Bit position is the third and optional component for the parameter of pmc_rdpmcrng. A valid value for bit position should be between 0 and 7, which corresponds to 8 bits of the data byte.

Note: Bit 0 is the least significant bit of the data byte.

If bit position is configured, the data value will be represented as an integer value of either 0 or 1 based on the value of that bit; if bit position is not configured, the data value will be represented as an integer value converted from the entire data byte.

In This Topic
TitleResults for “How to create a CRG?”Also Available in