• 沒有找到結果。

Diagnosis Inputs:

在文檔中 Task-task communication: (頁 180-185)

Each fieldbus module contains status informations which can be linked to TwinCAT (e.g. to to TwinCAT PLC). This status informations are mostly identical

at all Beckhoff fieldbus nodes (see CouplerState, MissedCnt)) and are described under -> "Status Information - Beckhoff Fieldbus nodes". Only the input variable BoxState is specific. This variable can contain the values which are described inside the below table. Additionally, each variable status is listed in the corresponding "Comment" field.

Variable "BoxState" at BK9000 couplers underneath a Virtual Ethernet Interfacedevice:

Note (only "Virtual Ethernet Interface" related):

The task cycle time ("Cycle ticks") of the corresponding task should be set to that high, that the variable MissedCntshows a static value. In a case of doubt it is better to decide for a higher rather than a lower cycle time.

Example: Minimum cycle time with UDP: 30ms Minimum cycle time with TCP: 50ms

Variable "BoxState" at BK9000 couplers within an Ethernet Miniport (real-time)subnet:

BC9000 (Ethernet Interface)

The Beckhoff BC9000 Bus Terminal Controller is to be configured in TwinCAT under a "Virtual Ethernet Interface". The following description explains the differences between the BC9000 and other Bus Couplers or Bus Terminal Controllers.

The Ethernet Bus Terminal Controller communicates via TCP/IP or UDP (and ADSas the Application Layer on top of it)) with TwinCAT. For an Overview of all currently supported Ethernet Bus Terminal Controllers, please see...

Diagnosis Inputs:

The directly below the Busterminal Controller listed PLC Variables are described under "Data Exchange PC / Bus Terminal Controller".

Each fieldbus module contains status informations which can be linked to TwinCAT (e.g. to to TwinCAT PLC). This status informations are mostly identical at all Beckhoff fieldbus nodes (see CouplerState, MissedCnt)) and are described under -> "Status Information - Beckhoff Fieldbus nodes". Only the input variable BoxState is specific and therefore described below. This variable can contain following values, which are described inside the below table.

Additionally, each variable status is listed in the corresponding "Comment" field.

Variable Data Type Value Description

BoxState UINT16

0x0000 No error

0x0001 No new Input information

0x0002 Outputs disabled (only with UDP) 0xnn00 nn = current warning level (only with UDP)

Variable Data Type Value Description

0x0010 Invalid input length (configured input process variables don't match attached Bus Terminals)

0x0020 Invalid output length (configured output process variables don't match attached Bus Terminals)

TwinCAT System Manager: Reference

"Bx9000" Tab

Diagnosis: This checkbox is deactivated for the BC9000.

2 Byte PLC Interface: This checkbox is deactivated for the BC9000.

K-Bus Update: According to the attached Bus Terminals, the estimated K-Bus update time is calculated and displayed here.

"PLC" Tab

For information about this tab, see -> "Data Exchange PC / Bus Terminal Controller".

"IP Address" Tab

For information about this tab, see -> "IP Address" Tab.

"ADS Commands" Tab

For information about this tab, see -> "ADS Command Window".

Note:

The task cycle time ("Cycle ticks") of the corresponding task should be set that high, that the variable MissedCntshows a static value. In a case of doubt it is better to decide for a higher rather than a lower cycle time.

Example:

Minimum cycle time with UDP: 30ms Minimum cycle time with TCP: 50ms

BK9500 (USB Interface)

The Beckhoff BK9500 Bus Coupler is configured in TwinCAT under a "Virtual USB Interface". The following description explains the differences between the BK9500 and other Bus Couplers.

The USB Bus Coupler communicates via ADSwith TwinCAT. For an Overviewof all currently supported USB Bus Couplers, please see...

Variable Data Type Value Description

BoxState UINT16

0x0000 No error

0x0001 No new Input information

0x0002 Outputs disabled (only with UDP) 0xnn00 nn = current warning level (only with UDP)

TwinCAT System Manager: Reference

Diagnosis Inputs

Each fieldbus module contains status informations which can be linked to TwinCAT (e.g. to to TwinCAT PLC). This status informations are mostly identical at all Beckhoff fieldbus nodes (see CouplerState, MissedCnt)) and are described under -> "Status Information - Beckhoff Fieldbus nodes". Only the input variable BoxState is specific. This variable can contain the values which are described inside the below table. Additionally, each variable status is listed in the corresponding "Comment" field.

"BK95x0/CPx8xx" Tab

Dip-Switch: The active dip-switch setting (USB address) of the USB Control Panel has to be edited here. If the BK9500 and his Bus Terminals have been found through ->"Scan Devices", the appropriate address has been set here automatically.

Diagnosis: This checkbox is deactivated at the BK9500.

2 Byte PLC Interface: This checkbox is deactivated at the BK9500.

K-Bus Update: According to the attached Bus Terminals, the estimated K-Bus update time is calculated and displayed here.

Search: If this button is pressed, the Device Handle is searched manually (usually not necessary).

Device Handle: Shows, with activated configuration and started TwinCAT System, the USB Device Handle for this device, which was obtained by the Operating System (and is currently valid).

"ADS Commands" Tab

For information about this tab, see -> "ADS Command Window".

CP68xx / CP78xx (USB Interface)

The Beckhoff Control Panel CP68xx and. CP78xx contains an USB interface (incl. integrated USB Hub ) for PC communication to the Special Keys and/or all kind of USB devices, connected to the Control Panel. The Special Keys and USB fieldbus devices communicate with TwinCAT via ADS.

"BK95x0/CPx8xx" Tab

Variable Data Type Value Description

BoxState UINT16

0x0000 No error condition

0x0001 No new input information

TwinCAT System Manager: Reference

Typen Beschreibung

CP68xx/CP78xx Beckhoff Control Panel with DVI and USB interface

Dip-Switch: The actual dip-switch setting (USB address) of the Control Panel with USB interface has to be edited here. If the Control Panel (plus possible Bus Terminals) have been found through ->"Scan Devices", the appropriate address has been set here automatically.

Diagnosis: This checkbox is deactivated at the CP68xx and CP78xx.

2 Byte PLC Interface: This checkbox is deactivated at the CP68xx and CP78xx..

Buttons: The correct number of Special Keys has to be selected here. The default is 27, which is appropriate for the most Beckhoff Control Panels (see also ->

"BECKHOFF Knowledge Base").

LEDs: The number of implemented LEDs and/or lamps inside the Special Keys of the Control Panel has to be selected here. Default number is 27, which suits for the most of the Control Panels (see also -> "BECKHOFF Knowledge Base").

K-Bus Update: According to the attached Bus Terminals, the estimated K-Bus update time is calculated and displayed here.

Search: If this button is pressed, the Device Handle is searched manually (usually not necessary).

Device Handle: Shows, with activated configuration and started TwinCAT System, the USB Device Handle for this device, which was obtained by the Operating System (and is currently valid).

"ADS Commands" Tab

For information about this tab, see -> "ADS Command Window".

I/O Variables:

Inputs:

PanelState: This Bit-Array is currently not in use (reserved).

S 1 .. n: Here, the input variables from other tasks (e.g. TwinCAT PLC) can be linkedto the Control Panel special keys (S-Keys) or to switches and pushbuttons of the pushbutton extension. Their actual status can be watched here, too.

CouplerState: See "Status Information - Beckhoff Fieldbus nodes".

BoxState: See "BK9500 (USB Interface"

MissedCnt: See "Status Information - Beckhoff Fieldbus nodes".

Note:

USB is specified for segment lengths of up to 5 m (hub to device, resp. next hub). If the MissedCnt value is raising under normal operation conditions, a short commercial off-the-shelf cable (e.g. 3 m) should be used for testing purposes to see whether the problem is related to the segment length of the USB

connection.

Outputs:

PanelCtrl: With this Bit-Array, the Panel behavior can be controlled. Currently, only the control of the backlight is implemented.

LED 1 .. n: The output variables from other tasks (e.g. TwinCAT PLC) can be linkedto the S-Key LEDs or to luminated pushbuttons, respectively their status can be watched, here.

在文檔中 Task-task communication: (頁 180-185)