Documente Academic
Documente Profesional
Documente Cultură
TI 34P02K03-03E
8th Edition Jan. 22, 2019 (YK)
Blank Page
i
Introduction
This guide describes how to analyze system information when troubleshooting
system problems, which may occur during operation of a STARDOM-based
system. It is written for engineers responsible for engineering and maintenance of
STARDOM systems.
It also describes how to design systems to avoid problems in future operation
and is thus useful in the system design phase.
This documentation assumes that the reader has basic knowledge of system
management of the Windows operating system (hereinafter abbreviated as
Windows).
Engineering Workflow
System Design
System Tuning
The above figure shows the standard engineering workflow. This document describes
precautions in system design, a checklist for system tuning and how to analyze
problems in system operation and maintenance for FCN/FCJ (R1.70 or later version).
Refer this document during application design to avoid problems in future operation, and
refer it during system tuning and system operation to troubleshoot problems.
IMPORTANT
In this manual, the term “FCN/FCJ” refers to FCN-500, FCN-100, FCN-RTU, and FCJ
autonomous controllers.
- The term “FCN-500” refers to the autonomous controllers with NFCP501/NFCP502
CPU module.
- The term “FCN-100” refers to the autonomous controllers with NFCP100 CPU
module.
- The term “FCN-RTU” refers to the low power autonomous controllers with
NFCP050 CPU module.
- The term “FCJ” refers to the all-in-one type autonomous controllers.
Chapter 1 FCN/FCJSystem
The chapter describes how to analyze system information when troubleshooting
FCN/FCJ system problems.
For details on how to gather information required for problem analysis when a system
problem occurs, see “STARDOM Troubleshooting Guide: Information Gathering”
(TI34P02K03-02E).
CONTENTS
Introduction ................................................................................................i
Copyright and Trademark Notices .........................................................iii
CONTENTS ................................................................................................v
1. FCN/FCJ System ..............................................................................1
1.1 Analyzing Revision Information ............................................................... 1
1.1.1 Type and Version of Windows OS on PC ....................................... 1
1.1.2 Revisions of FCN/FCJ, Development and Maintenance Tools ....... 2
1.2 Analyzing LED States ................................................................................ 3
1.2.1 Analyzing States of LEDs of Power Supply Module ....................... 3
1.2.2 Analyzing Operating Status LEDs of FCN/FCJ ............................... 5
1.2.3 Analyzing Communication Status LEDs of FCN/FCJ .................... 11
1.2.4 Analyzing Status LEDs of I/O Modules ......................................... 12
1.2.5 Analyzing Status LEDs of SB Bus Repeat Module ....................... 13
1.2.6 Analyzing Status LEDs of Serial Communication Module ............ 14
1.2.7 Analyzing Status LEDs of FOUNDATION Fieldbus
Communication Module ................................................................ 15
1.2.8 Analyzing Status LEDs of CANopen Communication Module ...... 16
1.2.9 Analyzing Status LEDs of PROFIBUS-DP Communication
Module ........................................................................................ 17
1.2.10 Analyzing Status LEDs of Serial Communication Port on CPU
Module for FCN-RTU .................................................................... 18
1.3 Analyzing CPU Status ............................................................................. 19
1.3.1 Execution Duration of Tasks ......................................................... 19
1.3.2 Analyzing CPU Load ..................................................................... 21
1.3.3 Watchdog Timer Error ................................................................... 23
1.3.4 CPU Overload ............................................................................... 25
1.4 Logic Designer Information .................................................................... 27
1.4.1 Analyzing Data of System Global Variables .................................. 27
1.4.2 POU Error Information .................................................................. 30
1.4.3 Analyzing Logic Designer Log Data .............................................. 30
1.5 Analyzing Resource Configurator Information .................................... 31
1.5.1 Basic Settings of CPU Module ...................................................... 31
1.5.2 License Information on System Card ............................................ 33
1.5.3 Analyzing RAS Information ........................................................... 35
1.5.4 Project Information ........................................................................ 37
1.5.5 Resource Configurator Definitions ................................................ 38
1.5.6 Analyzing Loop Check Tool Information........................................ 39
1. FCN/FCJ System
1.1 Analyzing Revision Information
1.1.1 Type and Version of Windows OS on PC
The PC system prerequisites for installing various software tools required for
FCN/FCJ development and maintenance are described in the relevant IM and GS
documents.
Verify that the Windows operating system version, the CPU and the memory of the
PC satisfy the operating environment prerequisites of the software tools.
Examples:
- A project using NPAS_POU is downloaded to FCN/FCJ R1.40
As FCN/FCJ R1.40 does not support NPAS_POU, a PLC error will be reported.
- A new project created using Logic Designer R1.86 cannot be downloaded online
to FCN/FCJ R1.60
The online download function is supported on R1.70 and later versions. Although
the Logic Designer is of R1.86 version, the FCN/FCJ is R1.60 so online
downloading dose not work.
Table I/O Modules that Require 24V Analog Field Power Supply
Model name Function
NFAI141 16 points, current input (when using 2-wire system)
Note: If no 24 V analog field power is supplied, these I/O modules will report IOP and OOP alarms and fail to operate
normally.
IP address setup state Fast Slow Off IP address setup is allowed in this state.
blink blink
Ready for power down state or system Off Off Off The FCN/FCJ can be safely powered down
down state or the FCN/FCJ has encountered a failure
and is down.
Boot mode selection state Fast Fast Off Allows selection of the boot mode from IP
blink blink address setup, maintenance and online
states using the Shutdown switch. The
system stays in this state for 3 seconds
before transiting to loading state.
Loading state On Slow Off The operating system is being loaded into
blink memory.
Loading completed state On On Off FCN/FCJ startup is in progress.
- The DIP switch settings of the base module of the FCN are invalid.
The base module of the FCN has two DIP switches: unit number setting and
duplex CPU module setting.
If any of these settings are invalid, the FCN cannot operate normally and the
LED display will appear strange.
- Pattern 1
This is the normal operating state where the left CPU has control in online state while
the right CPU is in standby online state.
- Pattern 2
In this state, the left CPU has control in online state, while the right CPU is in APC
waiting state.
This state happens if the standby (right) CPU goes down but as its failure is
recognized as transient, the CPU restarts and boots up in APC waiting state.
It may also happen if the right CPU is restarted but APC is not executed or APC
execution fails once.
- Pattern 3
In this state, the left CPU has control in online state, while the right CPU is in ready-
for-power-down state.
This state happens if the right CPU goes down twice within a week and does not
restart because the failure is recognized as an CPU failure.
It may also happen if the right CPU fails to restart after going down or if APC fails
twice consecutively.
- Pattern 4
In this state, the right CPU, which was previously the standby CPU, takes control in
online state while the left CPU, which was previously the control CPU, enters online
standby state.
This state happens if the left control CPU goes down, control is switched to the right
CPU, and APC is executed.
- Pattern 5
In this state, the right CPU, which was previously the standby CPU, takes control in
online state while the left CPU, which was previously the control CPU, enters APC
waiting state.
This state happens if the left control CPU goes down, control is switched to the right
CPU, the left CPU restarts as its failure is recognized as transient and it boots up in
APC waiting state.
It may also happen if the left CPU is restarted but APC is not executed or APC fails
once.
- Pattern 6
In this state, the right CPU, which was previously the standby CPU, takes control in
online state, while the left CPU, which was previously the control CPU, enters ready-
for-power-down state.
This state happens if the left CPU goes down twice within a week and does not restart
because the failure is recognized as an CPU failure, or the left CPU fails to restart
after going down or if APC fails twice consecutively.
There are two LEDS located at the network interface (LAN port) of the FCN-RTU,
namely, a green ON LED and a green LINK&ACT LED LED. These LEDs indicate the
following status when they are lit:
These LEDs indicate the following status when they are lit:
STATUS : Lit when the hardware is normal
ACT : Lit when I/O actions are carried out
DX : Always off (not used)
The STATUS LED is lit when the SB bus repeat module is operating normally. If the
STATUS LED is off, it means that the SB bus repeat module has encountered a
failure.
The SND and RCV LEDs are lit when the module is sending and receiving data
respectively. In practice, as data transmission and receiving are intermittent, the SND
and RCV LEDs blink.
If the SND and RCV LED do not blink despite the STATUS LED being lit, check the
following items.
TIP
The RCV LED of an NFLR121 module may be lit when sending data on 2-wire communication.
The STATUS and ACT LEDs of a serial communication module operate the same way
as those of an I/O module. For details, see Section 1.2.4, “Analyzing Status LEDs of
I/O Modules. The DX LED is lit when used as a duplex pair of NFLF111 modules.
TIP
The FCN-RTU does not support duplexed FOUNDATION fieldbus communication modules.
The SND and RCV LEDs are lit when the module is sending and receiving data
respectively. In practice, as data transmission and receiving are intermittent, the SND
and RCV LEDs blink. If the SND and RCV LED do not blink despite the STATUS and
ACT LED being lit, perform the following checks.
The STATUS, ACT and DX LEDs of a serial communication module operate the same
way as those of an I/O module. For details, see Section 1.2.4, “Analyzing Status
LEDs of I/O Modules.”
When an I/O module is operating normally, its COM LED is lit regardless of whether
the module is defined in Resource Configurator. The COM LED is off only when the
I/O module is not operating normally due to some failure. Therefore, if the COM LED
is off, you can conclude that there is an I/O module failure.
The COM LED is lit when the module is sending and receiving data respectively.
If the COM LED do not lit despite the STATUS and ACT LED being lit, perform the
following checks.
The STATUS, ACT and DX LEDs of a serial communication module operate the same
way as those of an I/O module. For details, see Section 1.2.4, “Analyzing Status LEDs
of I/O Modules.”
When an I/O module is operating normally, its COM LED is lit regardless of whether
the module is defined in Resource Configurator. The COM LED is off only when the
I/O module is not operating normally due to some failure. Therefore, if the COM LED
is off, you can conclude that there is an I/O module failure.
The COM LED is lit when all of the slave devices defined using PROFIBUS-DP
Configurator is sending and receiving data respectively.
If the COM LED do not lit despite the STATUS and ACT LED being lit, perform the
following checks.
For details on how to gather the required information, see Section 1.4.2, “Execution
Duration of Tasks” of “STARDOM Troubleshooting Guide: Information Gathering”
(TI 34P02K03-02E).
● Tick count
Control tasks of FCN/FCJ are executed in 10msec intervals. These 10msec cycles
are known as ticks. The duration of a control task is determined by counting ticks.
The Duration_Cur value of each “GSD_Task_**” system global variable indicates the
current control execution duration of the corresponding task in units of ticks.
200 ms
1 tick=10 ms
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Control execution
Read Control application Write Idle time
I/O execution DO/AO
100 ms
110 ms
For details on the system behavior when the processing of a control task does not
end within one control cycle, see Section 1.3.3, “Watchdog Timer Error.”
For details on how to gather the required information, see Section 1.4.1, “CPU Load”
of “STARDOM Troubleshooting Guide: Information Gathering” (TI 34P02K03-02E).
〜
〜
1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4
Let’s assume that the CPU load did not vary and stayed approximately constant
throughout the checking interval of 10.24 s.
We can then assume that the 380 RUN counts of the control task were evenly
distributed among the 51 times task executions.
We can consider that the RUN count was 7 for 28 task cycles and 8 for 23 task
cycles as shown below:
Total RUN count for 28 cycles =7×28 =196
Total RUN count for 23 cycles = 8×23 =184
Number of control task executions = 51 = 28 + 23
Total RUN count for control task =380 =196 +184
To summarize, if the task cycle is 200 ms and the CPU load is 37%, it means that
over the 10.24 s period used for CPU load calculation, the control task was
executed 51 times, and the duration of the control computation was 70 ms or
longer but shorter than 80 ms for 28 executions and 80 ms or longer but shorter
than 90 ms for 23 executions.
IMPORTANT
The above calculations assume that the CPU load did not vary and so processing
time for each cycle stayed approximately constant, which may not be the case in
reality.
For instance, the CPU load in the above example will remain as 37% even if out of the
51 times control task executions, the RUN count was 7 for 49 executions and due to a
surge in CPU load, the RUN count was 18 for 2 task cycles.
To check for variance of the CPU load, add global variable “GSD_Task_**” to the
Watch window of Logic Designer and visually monitor the value of Duration_Cur.
You may also assign the value of Duration_Cur to a UINT-type variable and analyze
the variable using Logic Analyzer.
In the above figure, processing of the control task requires approximately 250 ms and
cannot be completed within one control cycle. Processing of the first task cycle is
completed within the second task cycle.
First task cycle Control computation is not completed within the task cycle so a WDT error is
reported at the end of the task cycle.
Second task cycle Remaining computation not processed in the first task cycle is performed.
The computation ends about 50 ms later, leaving 150 ms idle time. The next
control computation is not started.
Third task cycle The next control computation is executed. The computation is not completed
within the task cycle so a WDT error is reported at the end of the task cycle.
Fourth task cycle Similarly to the second task cycle, the computation ends about 50 ms later,
leaving 150 ms idle time.
In this example, WDT errors are reported because control computation fails to end
within a 200msec ask cycle. Control computation which is supposed to be executed 4
times within a 800msec period is actually executed only 2 times so that the actual
taskcycle is 400msec, which is double of the defined task cycle.
● Precautions
Logic Designer’s Target Setting dialog has a checkbox for “The task aborts when the
execution time of a task exceeds a watch dog time.” This checkbox can be used to
define the behavior of a control task in the event of a WDT error.
Checked: When a WDT error is detected,Tthe control task stops execution at WDT error.
Unchcked: Tthe control task continues execution at WDT error and checking, it is recorded in
the log file.
By default, this checkbox is unchecked. Beware that checking the checkbox will
cause a control task to stop execution in the event of a WDT error.
On the other hand, specifying a non-zero WDT value but leaving the checkbox
unchecked will allow monitoring of WDT errors without stopping task execution.
TIP
Uncheck this check box for a duplexed CPU configuration.
10 s
〜
〜
Control cycle Control cycle Control cycle Control cycle
Control execution Control execution ..... Control execution Control execution
Control application Write Control application Write Control application Write Control application Write
Read I/O Read I/O Read I/O Read I/O
execution DO/AO execution DO/AO execution DO/AO execution DO/AO
In this case, CPU load is persistently high as the defined task cycle is considered
short for the amount of control computation processing required.
10 s
Control cycle Control cycle Control cycle Control cycle
〜
〜
WDT error WDT error WDT error CPU overload reported WDT error
reported reported reported WDT error reported reported
In this case, consider the following possible causes for failure of the control
computation to complete within one task cycle.
- Execution of tasks having lower priority than the task causing CPU overload
- Communication with VDS data servers
- Inter-FCN/FCJ communication
- Modbus communication, Ethernet or serial communication between devices
- InfoWell function
- Duolet user applications
● GS_RAS_IOStat
The GS_RAS_IOStat global variable indicates the status of an installed I/O module.
The following figure shows status information for the I/O module installed in slot 5 of
the control unit (unit1). Of the displayed information, we shall describe the IomStatus,
ErrDetail and SbbusStatus, which are enclosed within the rectangle in the figure.
For details on how to gather the required information, see Section 1.4.3, “Data of
System Global Variables” of “STARDOM Troubleshooting Guide: Information
Gathering” (TI34P02K03-02E).
- IomStatus
The IomStatus WORD-type data represents the status of an I/O module. The table
below describes the meaning of each IomStatus bit, when set.
These bits, when combined, indicate normal status. For instance, 16#0011 indicates
normal operation with definition data present and 16#0013 indicates downloading in
progress with definition data present.
Table IomStatus
Value Description
16#0001 Normal operation
In this state, no system alarm is reported in the I/O module.
System alarm conditions such as whether there is external power supply vary
with the I/O module type.
16#0002 Downloading in progress
In this state, definition data is being downloaded from Resource Configurator.
- ErrDetail
The ErrDetail WORD-type data stores error information of an I/O module.
Table ErrDetail
Value Description
16#0000 Normal state
This value is also displayed when no module is defined.
16#0001 Error state
This value is displayed for any other error not listed below.
16#0002 Configuration error
This value is stored in ErrDetail when a normal I/O module is replaced by
a module of the same type but with different configuration.
If automatic loading is enabled, this state will trigger automatic loading,
and clear the error.
- SbbusStatus
The SbbusStatus WORD-type data indicates the status of the SB bus connected to an
I/O module. The table below describes its bit representation.
Table SbbusStatus
Value Description
16#0001 SB bus A is operating normally.
If the SbbusStatus value is not equal to any of the normal values listed in the table
above, it indicates an error somewhere on the SB bus.
This SB bus includes not only the internal SB bus of the base module, the SB bus
repeat module, the SB bus cable, but also the internal SB bus of the I/O module.
Thus, an I/O module unit failure may also result in the SbbusStatus of the module
indicating an error value.
Therefore, when the SbbusStatus indicates an error value, you need to determine
whether it is due to an SB bus error or an I/O unit failure.
For this purpose, check the SbbusStatus value of other I/O modules installed in the
same base module.
If the SbbusStatus of all I/O modules installed within the same base unit indicate an
error value, it indicates that the error is on the internal SB bus of the base module, the
SB bus repeat module or the SB bus cable.
If the SbbusStatus of the other I/O modules installed on the same base module
indicate a normal value, it signifies a unit failure of the corresponding I/O module.
● GS_RAS_Current
The GS_RAS_Current system global variable stores current RAS information.
Such information includes the serial number or revision of the system card, the CPU
operating status and system down information, and is displayed collectively as RAS
information in Resource Configurator.
For details on the displayed information, see Section 1.5.3, “Analyzing RAS
Information.”
In particular, when communication is not normal, the error code displayed in the
communication POU is useful for pinpointing the cause of the problem.
In order to gather information when a communication error is encountered, we
recommend assigning a variable each to the ERROR terminal and STATUS terminal
of a communication POU beforehand.
The date and time when a project is “make” or compiled is recorded in the log file as
follows: (for R1.70 and later versions)
Example:
20**/**/** **:**:** TRACE,0x000f, C:\BuildEnv\VC\Src\LogicDesigner
\SdcsWriteGenInfo\CSdcsEngLog.h:106,"---- Writing generational information
FCX01----"
When a project including an APPF not listed here is downloaded from Logic Designer,
a license error message is displayed in Logic Designer’s message window.
Right-click on the displayed error and select message help to display the controller
error message online help documentation. The help documentation contains a list of
APPF numbers, which can help identify the application portfolio corresponding to the
APPF number displayed in the license error message.
981 NT8885J InfoEnergy Software License Yokogawa Power Monitor: 0→62 monitors
InfoEnergy Software License Yokogawa Power Monitor: 62→124 monitors (Only
982 NT8885J
For FCN)
983 NT8885J InfoEnergy Software License Direct Analog Input: 0→6 Inputs (Only for FCJ)
984 NT8885J InfoEnergy Software License Direct Analog Input: 0→16 Inputs (Only for FCN)
985 NT8885J InfoEnergy Software License Direct Analog Input: 16→32 Inputs (Only for FCN)
986 NT8885J InfoEnergy Software License Direct Digital Input: 0→16 Inputs (Only for FCJ)
987 NT8885J InfoEnergy Software License Direct Digital Input: 0→64 Inputs (Only for FCN)
988 NT8885J InfoEnergy Software License Direct Digital Input: 64→128 Inputs (Only for FCN)
From the above online help documentation, we know from the “Application portfolio:
121” error message displayed in the above figure that the error occurs because
MELSEC-A Communication portfolio license is not registered on the system card.
From LogDate and DownCode, you can tell when and why the FCN/FCJ went down.
For details on the above information, see [FCN/FCJ Setting]-[Confirming the RAS
Information] in the online help documentation of Resource Configurator.
Information is copied from current to Old(1) and from Old(1) to Old(2) when:
- Transition is made to Ready-for-power-down state by shutdown processing of
FCN/FCJ.
DownStatus, DownCode and LogData are assigned values by shutdown
processing.
- FCN/FCJ restarts after power interruption without shutdown processing.
This happens when power is restored after power supply to FCN/FCJ is cut off
suddenly due to power failure. As shutdown processing is not performed,
DownStatus and DownCode are assigned zero values while LogDate is assigned
the date and time of the FCN/FCJ startup.
- FCN/FCJ is rebooted without shutdown processing.
This happens if the RESET button is activated when FCN/FCJ is running or the
FCN/FCJ is rebooted from the FCN/FCJ maintenance page.
DownStatus is assigned a RESET-button-on event while LogData is assigned the
date and time of the FCN/FCJ startup.
IMPORTANT
The above information is updated 15 or more minutes after downloading a project,
boot project or project source.
Moreover, the information will not be updated while a Resource Control dialog window
of Logic Designer is displayed, or while Logic Designer is in Debug mode.
Example:
WARNING=0026: The device label variable (AI001) used by the IEC control
application is not assigned to I/O Module.
Example:
WARNING=0027:The data type(I_Sts) of the device label variable(DI001) used
by the IEC control application is not suitable for the signal type of I/O
Module.:I/O Module=1(AI/AO),signal type=AI
Electrical
Analog input Normalized data A/D
signal
con-
(engineering unit) version
Electrical
BOOL-type data signal
Digital output
(BOOL-type data)
Electrical
Digital input BOOL-type data signal
(BOOL-type data)
Values displayed by
Loop Check Tool
The Loop Check Tool was originally designed for I/O wiring check of FCN/FCJ but can
also be used for first-level isolation of the cause of an I/O related problem.
- I/O disconnection
If Logic Designer’s global variable GS_NFIO_DISCONNF is set to ON, I/O is
disconnected and the CPU module does not communicate with I/O modules so
naturally no data will be displayed by Loop Check Tool.
- If values of Loop Check Tool and device label variables tally but differ
from actual I/O values
This is likely caused by output inversion in Resource Configurator. Since the values of
the Loop Check Tool and device label variables tally, it means that things are normal
from the CPU module up to D/A conversion or A/D conversion by the I/O module as
shown in the figure on the previous page.
The cause of the problem is, therefore, not on the application side so check the
connections between the I/O module and devices and their hardware settings.
- If values of Loop Check Tool and actual I/O tally but differ from device
label variable values
Since the values of the Loop Check Tool and actual I/O tally, it means that things are
normal from D/A conversion or A/D conversion by the I/O module up to the device.
The cause of the problem, therefore, lies in data setting by the application so check
the application including Resource Configurator’s settings and Logic Designer’s
device label variable definitions.
- If values of Loop Check Tool, device label variables and actual I/O all
differ
The problem is likely due to both application definitions or settings and hardware
connections or settings.
If this free space falls too low, system card revision upgrade will not succeed.
If revision upgrade fails, check the free space on the system card.
At least 7 MB of free space on the system card is required for revision upgrade to
FCN/FCJ R1/R2.
At least 10 MB of free space on the system card is required for revision upgrade to
FCN/FCJ R3 or later.
Explanation: At 08:23:29, duplex FCN is powered up and APC is started. At 08:24:36, the left FCN starts control
processing as the control FCN. At this time, a warm start message is logged, which indicates that the boot project
on the system card has been loaded into the memory and the system has been warm started. From the log data,
we know that restart processing after power up has completed successfully.
Example:
20**/**/** **:**:**, ,ERROR ,ERROR,MID=0x201a,ErrNo=0x7,File=
SdcsPcException.c,Line=308,Msg=Exception(Watchdog) in Task0, Ignore
The above log record can be broken down in meaningful pieces as shown in the table
below.
Date information: 20**/**/** **:**:**
Log type: ERROR
Location of log event: ERROR,MID=0x201a,ErrNo=0x7,File=SdcsPcException.c,Line=308
Message: Msg=Exception(Watchdog) in Task0, Ignore
The message describes the logged event, the name of the task associated with the
event and the operation of the task when the event occurred.
In the above example, a WDT error is reported for Task0.
From the word “Ignore” in the message, we know that Task0 did not stop but
continued control execution despite the WDT error.
On the contrary, if the task had stopped execution when the logged event occurred,
“Terminate Task” instead of “Ignore” would be logged.
When analyzing text information in a log file, besides the message itself, you should
also check preceding and subsequent logged information.
Section
Msg=Exception(CPU Overload) in Task0, Ignore A CPU overload is reported in Task0.
1.3.4
A division by zero exception is reported during
Msg=Exception(DIV0) in Task0, Terminate Task
calculation processing of Task0.
Example:
FCN/FCJ clock time is set to JST local time with GMT time zone
setting
Consider an example where the FCN/FCJ is set to JST local time (current GMT time +
9 hours) without first changing the time zone setting from its default of GMT to JST.
The internal clock now holds a time value equivalent to current GMT time + 9 hours. If
the time zone setting of the FCN/FCJ remains as GMT, the displayed clock time will
seem to reflect the local time correctly as no time correction for time zone is
performed before display.
If the system card of the FCN/FCJ is then replaced and the time zone setting saved
on the new system card is JST, the system will perform GMT to JST conversion
before displaying the time by adding 9 hours to the time value of the FCN/FCJ internal
clock.
However, as the internal clock already holds the value of current GMT time + 9 hours
before the card is replaced, the displayed time after the card is replaced will be the
current GMT time + 18 hours, which is incorrectly ahead by 9 hours.
● How to get FcxRsh from CD-ROM for FCN/FCJ R1.40 or later revision
1. Insert the CD-ROM for R1.40 or later revision into the PC’s CD-ROM drive. If the
screen is automatically regenerated, exit from the program.
2. From the File Explorer, right-click the CD-ROM, and select [Open] from the
displayed pop-up menu.
3. From the displayed folder, execute the "Pkg_FCX.exe" file below “Pkg_FCX,”
and specify an installation path. A folder named "FCX" is created at the specified
installation path, with the “FCXTOOL.EXE” file stored within the folder.
File location: FCX\Install\jeros\SCRIPT
4. Uncompress the “FCXTOOL.EXE” file. The “FcxRsh.exe” file is included among
the uncompressed files.
IMPORTANT
When uncompressing "FCXTOOL.EXE," the specified destination pathname for the
uncompressed folder must not contain any space character. For instance,
"Documents and Settings" would not be a valid destination pathname.
1. Open a command prompt window, and make the folder where FcxRsh.exe is
stored the current directory by typing:
C:\>cd tmp\FCXTOOL
2. Execute the command by typing “FcxRsh” followed by the IP address of the
FCN/FCJ and the command to be executed on the FCN/FCJ as shown below:
C:\tmp\FCXTOOL>FcxRsh 192.168.0.1 <command to be executed>
3. The specified command is executed on the specified FCN/FCJ and the execution
result is displayed.
IMPORTANT
As FcxRsh affects CPU operation, its use during production operation is generally not
recommended. If its use is absolutely necessary for information gathering, we
recommend testing on an alternative machine first. Moreover, using FcxRsh directly
by typing commands at a Windows command prompt carries risk of mistyping
resulting in problems so always create a BAT file containing the required FcxRsh
command(s) and test its execution on a debugging machine before executing it on the
production machine. Moreover, do not press the Ctrl-C keys during command
execution as this will cause a temporary surge in CPU load on the FCN/FCJ.
IMPORTANT
Beware that executing communication trace commands will increase the CPU load of
the FCN/FCJ.
- Trace command
By executing the SdcsPlcComFbTrace command on the FCN/FCJ using the remote
shell tool, we can display the trace results on a PC. Mode, communication channel
and number of traces are passed as command arguments.
- Argument 1: mode
1: Text Trace ON → If FCN/FCJ is running as a client
2: Bin Trace ON → If FCN/FCJ is running as a client
3: Text&Bin Trace ON → If FCN/FCJ is running as a client
11: ModTcpSvrTrace ON → If FCN/FCJ is running as a server
- Argument 2: Communication channel
If the FCN/FCJ is running as a client, specify the CH terminal number of the
OPEN communication POU.
If the FCN/FCJ is running as a server, execute the following command to check
the client IP address and specify the task number.
FcxRsh 192.168.0.1 SdcsModTcpSvrInfoShow
- Argument 4: Timestamp
0: No timestamp (default)
!0: With time stamp
(TIP) If R3.20.01 or earlier, tracing will continue if trace count is omitted. Please end
with the above method. If R3.30.01 or later, tracing stops, so it is unnecessary.
3. When you execute the BAT file, the trace results will be displayed as shown
below:
TEST.BAT
SdcsPlcComFbTrace 2,1,30
value = 0 = 0x0
taskDelay 500
CH= 1 S=12 OK : 00000000 00060101 00000014
CH= 1 R=12 OK : 00000000 00060101 03000000
CH= 1 S=12 OK : 00000000 00060102 00000014
:
:
CH= 1 S=12 OK : 00000000 00060101 00000014
CH= 1 R=12 OK : 00000000 00060101 03000000
value = 0 = 0x0
logout
IMPORTANT
Beware that executing communication trace commands will increase the CPU load of
the FCN/FCJ.
- Trace command
By executing the SdcsRsmFbTrace command on the FCN/FCJ using the remote shell
(FcxRsh) software tool, we can display the trace results on a PC. Mode and
communication port name are passed as command arguments.
- Argument 1: mode
1: Text Trace ON
2: Bin Trace ON
3: Text&Bin Trace ON
- Argument 4: Timestamp
0: No timestamp (default)
!0: With time stamp
The text file can be given any arbitrary name but must be saved in the same
folder as the remote shell (FcxRsh) tool. In this example, “Trace_Serial_Start.txt”
is assumed as the filename.
2. Create a TEST.BAT file with the following content for execution.
FcxRsh -f Trace_Serial_Start.txt 192.168.0.2
3. Create an END.BAT file with the following content for ending tracing.
FcxRsh SdcsRsmFbTrace
#
● Case Analysis
First of all, check whether the “Enable Hard-backup for retained data” checkbox of the
General Settings of the CPU module is selected to determine whether retained data is
stored on the SRAM.
Next, check the log files of the FCN/FCJ to see whether the following internal codes
were logged to perform chronological analysis of the state of the FCN/FCJ.
For more details, see Section 1.6.2, “Analyzing FCN/FCJ Log Data.”
If internal codes 3507 and 3508 indicating retained data restoration were logged, it
means retained data on the SRAM was overwritten by data on the system card then.
If internal code 3216 indicating FCN/FCJ cold start was logged, it means retained
data was initialized then.
If it was confirmed that retained data has been restored, determine when the data was
saved by checking the date and time information of retained data.
● Case Analysis
First, from the states of the status LEDs of the I/O module, check whether the I/O
module is operating normally. (See Section 1.2,4, “Analyzing Status LEDs of I/O
Modules.”)
Similarly, from the states of LEDs of the power supply module, check whether power
is supplied to an I/O module that requires 24V analog field power supply and verify
that current consumption is equal or less than the rated 4A. (See Section 1.2.1,
“Analyzing States of LEDs of Power Supply Module.”)
From the data of system global variable GS_RAS_IOStat, check the status and error
status of the I/O module. (See Section 1.4.1, “Analyzing Data of System Global
Variables.”)
If there is no problem with the status of the I/O module, check whether any warning
has been reported. If no warning has been reported, use the Loop Check tool to
perform first-level isolation of the cause of the problem into connection-related
problem or application-related problem (See Section 1.5.6, “Analyzing Loop Check
Tool Information.”).
When you have identified the cause, rectify the problem.
● Case Analysis
The Timer function block (abbreviated as TM FB hereafter) or NPAS_TM measures
time based on the control cycle of a control task and the number of times the TM FB
or NPAS_TM is executed.
For instance, every time TON is executed by a control task having control cycle of 100
ms, it increments the elapsed time by 100 ms.
Assuming the preset time is defined as 1 second, timeout is recognized when TON is
executed 10 times (1 second = 10 times x 100 ms) instead of when exactly 1 second
has elapsed since operation began.
● Description of Error
When an error is encountered in inter-FCN/FCJ communication, a heart beat timeout
error is recorded in the log file as shown below.
Example:
200*/**/** **:**:** ,ERROR,ERROR,MID=0x2025,ErrNo=0,File=Sdcs_commfb.c, Line=1681,
Msg=Heart beat timeout has occurred (chan=1).(sent=2674433, now=2674753)
200*/**/** **:**:** ,ERROR,ERROR,MID=0x2025,ErrNo=0,File=Sdcs_commfb.c, Line=4411,
Msg=doHBTout()/resetC() called. (chan=1) P=/inet/ -ip 192.168.1.1 -p 20001 -srv
● Case Analysis
Consider the following possible causes of a heart beat timeout error.
● Description of Error
In a duplex FCN, output values of device labels of the control side and standby side
are compared.
Normally, outputs of the control side and standby side are identical. If they are found
to differ for whatever reason, a MISCMP error will be recorded in the log file.
Example:
200*/**/**
**:**:** , ,ERROR,ERROR,MID=0x2007,ErrNo=0x20080013,File=SdcsRedcyTskSyncQ.c,
Line=1178,Msg=MISCMP Task0:200c0200:2c/80 100 1060101 0 1 0
When the outputs of the control side and standby side differ, control processing
continues with output values of the control side.
If the control CPU fails under this condition and control is switched to the standby
side, sudden changes in outputs may occur.
Consider an example where both control and standby CPUs are operating normally
but the output of a certain DO is ON on the control side but OFF on the standby side.
In this case, the FCN outputs the ON value of the control CPU.
If the control CPU fails in this state, control will be switched to the standby CPU and
the output of the DO will become OFF.
Moreover, as the previous standby CPU now becomes the control CPU, internal data
is updated and the output of the DO immediately reverts to ON.
Thus, as explained above, when control is switched to the standby CPU under
MISCOMP error condition, there may be sudden changes in output values and
momentary inversion of DO outputs, which may affect control adversely.
● Case Analysis
From the data in the log file of the FCN, identify the device label associated with the
MISCMP error and amend the application if necessary.
In the sample MISCMP error log of “Msg=MISCMP Task0:200c0200:0/80 100
1060101 0 1 0” shown above, the “100 1060101 0 1 0” part identifies the source of the
MISCMP error.
- Information part 1
This information part indicates the hexadecimal address of the device label
associated with the MISCMP error.
From information part 1 of “100” of the sample log, we know that the address of the
device label is 100 in hexadecimal, which is equivalent to 256 in decimal.
Next, search for the device label corresponding to the address by displaying Logic
Designer’s device label definitions, which list addresses of device labels sequentially
regardless of device label type.
From the figure shown below, we know that address 256 corresponds to device label
“DO001,” which is the source of the MISCMP error.
- Information part 2
This information part indicates the hardware corresponding to the error device label.
It displays sequentially the unit, slot, port and channel associated with the MISCMP
error.
Unit: 1: control unit
2: expansion unit 1
3:expansion unit 2
Slot: Slot number where the I/O module is installed
Port: Always 1
Channel: Channel number of the device label in hexadecimal
Thus, we know that the MISCMP error was reported for channel 1 of the I/O module
installed in slot 6 of the control unit.
- Information part 3
This information part contains internal information, which is not useful for problem
analysis.
From the sample log, we know that the output of the own CPU (control CPU) is 1
(ON) while the output of the other CPU (standby CPU) is 0 (OFF).
- Result
Based on the above analysis, “100 1060101 0 1 0” of the sample log indicates that
the following MISCMP error
Output of control CPU: ON
Output of standby CPU: OFF
Case 1
Not only did communication attempts between the FCN/FCJ and the PC fail, control
also stopped.
However, ping commands between the FCN/FCJ and the PC succeed.
Case 2
All communication attempts between the PC and FCN/FCJ fail after the IP address of
the FCN/FCJ was modified. However, control processing continues.
Ping commands between the FCN/FCJ and PC are also unsuccessful.
Note: As communication between FCN/FCJ and PC cannot succeed, other information cannot be gathered.
● Analysis of Case 1
From the phenomena observed, we conclude that either there is a CPU overload or
the CPU is approaching overload conditions as described in Section 1.3.4.
From the states of the LEDs of the FCN/FCJ and the fact that ping commands
between the FCN/FCJ and PC succeed, we conclude that the FCN/FCJ itself is
operating normally.
If communication fails despite the FCN/FCJ operating normally, it is likely due to high
control application load on the FCN/FCJ, leaving no or little CPU idle time.
As the various communications mentioned earlier have lower execution priority than
control applications, they are performed during CPU idle time. When control
application load is high, leaving no CPU idle time for communication processing,
communication timeout will arise.
On the other hand, replies to ping commands from a PC have high execution priority
than control applications so ping commands will succeed even if there is no CPU idle
time.
Consider the following possible causes for low CPU idle time:
- Prolonged execution of a task of higher execution priority than control tasks
- Short task cycle
- Repetitive processing of a control application fails to end
(For details, see Section 1.3.4, “CPU Overload.”)
After checking the log file, amend the application causing the problem using Logic
Designer and then download the amended project to the FCN/FCJ. Remember to
also download the amended project to the deleted boot project.
● Analysis of Case 2
From the observation that ping commands are unsuccessful, we suspect that the IP
address of the FCN/FCJ may have been modified. One possibility is that the IP
address was set by a DHCP server.
If a DHCP server is present on the network connected to the FCN/FCJ, depending on
when the FCN/FCJ transits to IP address setup mode, the IP address of the FCN/FCJ
may someitmes be set by the DHCP server before it can be set by Resource
Configurator. If an IP address is set by the DHCP server, it is unknown to the PC and
thus the PC cannot properly address the FCN/FCJ and all communication attempts or
ping commands will fail.
In this case, unlike case 1, however, control continues because there is no CPU
overload error on the FCN/FCJ.
To fix this problem, disconnect the FCN/FCJ from the control network, connect the
FCN/FCJ and PC directly and define the IP address. After verifying that
communication between the PC and FCN/FCJ has recovered, connect the FCN/FCJ
to the control network.
2K bytes (2,048 bytes) of data can be accessed per communication. The number of
data items readable per communication varies with data type. Values for some typical
data types are shown below.
*1: The number of bytes for NPAS objects given in the table are obtained by adding bytes for types of “normal scan”
only. Different NPAS objects have different number of bytes for normal scan data.
To calculate the number of bytes accessed for an individual NPAS object, see Chapter C5, “PASPOU Objects” of
“VDS Engineering Manual” (IM 34P02D02-01E).
The table below shows the number of data items accessible per second for different
data types under different CPU loads (indicative values only):
*1: A value within parentheses ( ) indicates the access time per communication (2 K bytes).
*2: Number of data items per second = Number of data items per communication ×1000 / access time per
communication
Revision Information
Document name : STARDOM Troubleshooting Guide: Information Analysis
Document No. : TI 34P02K03-03E