plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem in hitachi PLC system

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> PLC Tutorials
View previous topic :: View next topic  
Author Message
Osama Badr
Junior
Junior


Joined: 21 Jul 2016
Posts: 6

PostPosted: 22/07/2016 13:44    Post subject: Problem in hitachi PLC system Reply with quote

Problem in hitachi PLC system

* The problem description :-
The PLC is working normally , but suddenly stop.
Why ?
We don't know
Then it may be recovered itself how and why?
We don't know

* System details :-
Wonderware intouch 8
OS :- computer/windows xp
CPU 22-02HC
Hitachi H252C
10 Output modules :- POM-RBW .
12 Input modules :- PIM-DGH .
4 Input modules :- PIH-DM .
1 Input modules :- PIM-DGW .
3 power modules :- PSM2-A2 .
1 analog module :- Actana-S1 for Hitachi plc .
Actwin 3.44 .

i exchanged the cable but no responding

What's the suitable solution of this problem ?
Back to top
View user's profile Send private message
tanner
Member
Member


Joined: 07 Jun 2015
Posts: 134

PostPosted: 22/07/2016 17:23    Post subject: Re: Problem in hitachi PLC system Reply with quote

Osama Badr wrote:
Problem in hitachi PLC system

* The problem description :-
The PLC is working normally , but suddenly stop.
Why ?
We don't know
Then it may be recovered itself how and why?
We don't know

* System details :-
Wonderware intouch 8
OS :- computer/windows xp
CPU 22-02HC
Hitachi H252C
10 Output modules :- POM-RBW .
12 Input modules :- PIM-DGH .
4 Input modules :- PIH-DM .
1 Input modules :- PIM-DGW .
3 power modules :- PSM2-A2 .
1 analog module :- Actana-S1 for Hitachi plc .
Actwin 3.44 .

i exchanged the cable but no responding

What's the suitable solution of this problem ?



You seems to have problems with wrong contacts on cards or on EEPROM or contacts on pins.
Try to apply a knock a little shock on every card to see if it responds.
I had the same problem with an old DC Converter modules
Back to top
View user's profile Send private message
Osama Badr
Junior
Junior


Joined: 21 Jul 2016
Posts: 6

PostPosted: 22/07/2016 18:48    Post subject: Re: Problem in hitachi PLC system Reply with quote

Quote:
You seems to have problems with wrong contacts on cards or on EEPROM or contacts on pins.
Try to apply a knock a little shock on every card to see if it responds.
I had the same problem with an old DC Converter modules


thanks alot in advance
i think also the problem in connection between computer case and CPU

please review this error message appear when project to/from plc

[img]http://dc181.4shared.com/img/Pw2rLyZGce/s23/1560f00fff8/IMG_20160721_205509[/img][/img]
Back to top
View user's profile Send private message
Osama Badr
Junior
Junior


Joined: 21 Jul 2016
Posts: 6

PostPosted: 22/07/2016 19:01    Post subject: Re: Problem in hitachi PLC system Reply with quote

Osama Badr wrote:
Quote:
You seems to have problems with wrong contacts on cards or on EEPROM or contacts on pins.
Try to apply a knock a little shock on every card to see if it responds.
I had the same problem with an old DC Converter modules


thanks alot in advance
i think also the problem in connection between computer case and CPU

please review this error message appear when project to/from plc

[img]http://dc181.4shared.com/img/Pw2rLyZGce/s23/1560f00fff8/IMG_20160721_205509[/img][/img]


http://dc181.4shared.com/img/Pw2rLyZGce/s23/1560f00fff8/IMG_20160721_205509
Back to top
View user's profile Send private message
tanner
Member
Member


Joined: 07 Jun 2015
Posts: 134

PostPosted: 23/07/2016 18:12    Post subject: Re: Problem in hitachi PLC system Reply with quote

Osama Badr wrote:
Osama Badr wrote:
Quote:
You seems to have problems with wrong contacts on cards or on EEPROM or contacts on pins.
Try to apply a knock a little shock on every card to see if it responds.
I had the same problem with an old DC Converter modules


thanks alot in advance
i think also the problem in connection between computer case and CPU

please review this error message appear when project to/from plc

[img]http://dc181.4shared.com/img/Pw2rLyZGce/s23/1560f00fff8/IMG_20160721_205509[/img][/img]


http://dc181.4shared.com/img/Pw2rLyZGce/s23/1560f00fff8/IMG_20160721_205509



http://www.lighthouseplcs.com/support/error_codes.html
Back to top
View user's profile Send private message
tanner
Member
Member


Joined: 07 Jun 2015
Posts: 134

PostPosted: 23/07/2016 18:13    Post subject: Reply with quote

http://www.esco-da.be/Protect/PLC%20Hitachi/Software/ActCom/Manuals/ActWin%20Com%20manual%202001.pdf
Back to top
View user's profile Send private message
Osama Badr
Junior
Junior


Joined: 21 Jul 2016
Posts: 6

PostPosted: 23/07/2016 20:33    Post subject: Reply with quote

tanner wrote:
http://www.esco-da.be/Protect/PLC%20Hitachi/Software/ActCom/Manuals/ActWin%20Com%20manual%202001.pdf


thanks in Advance
0xD2 Transmission time-out

BUT WHAT DOES IT MEAN ?
Back to top
View user's profile Send private message
tanner
Member
Member


Joined: 07 Jun 2015
Posts: 134

PostPosted: 23/07/2016 20:37    Post subject: Reply with quote

Osama Badr wrote:
tanner wrote:
http://www.esco-da.be/Protect/PLC%20Hitachi/Software/ActCom/Manuals/ActWin%20Com%20manual%202001.pdf


thanks in Advance
0xD2 Transmission time-out

BUT WHAT DOES IT MEAN ?


check everything...
cables, settings, connectors' pins and plugs,...
try in dos to see behavior....
well..what can be said ..you have a challenging system... :w00t:
Back to top
View user's profile Send private message
Osama Badr
Junior
Junior


Joined: 21 Jul 2016
Posts: 6

PostPosted: 23/07/2016 23:50    Post subject: Reply with quote

Quote:
try in dos to see behavior....

how can i use DOS to check ?
the steps
Back to top
View user's profile Send private message
tanner
Member
Member


Joined: 07 Jun 2015
Posts: 134

PostPosted: 24/07/2016 11:05    Post subject: Reply with quote

Osama Badr wrote:
Quote:
try in dos to see behavior....

how can i use DOS to check ?
the steps


https://batchloaf.wordpress.com/2013/02/12/simple-trick-for-sending-characters-to-a-serial-port-in-windows/

https://batchloaf.wordpress.com/comprinter/

play with variants like above in windows (however) to check if serial is ok
it seems you have here a problem
ComPrinter is a Win32 console application, written in C. I compiled it with the MinGW version of gcc. The complete source code is below.

Quote:


//
// ComPrinter.c - This program reads text from a
// serial port and prints it to the console.
//
// Written by Ted Burke - last updated 3-5-2012
//
// To compile with MinGW:
//
// gcc -o ComPrinter.exe ComPrinter.c
//
// Example commands:
//
// ComPrinter /devnum 22 /baudrate 38400
// ComPrinter /id 12 /quiet
// ComPrinter /baudrate 38400 /keystrokes
//
// To stop the program, press Ctrl-C
//

#define WINVER 0x0500

#include <windows>
#include <stdio>
#include <stdlib>

#define MESSAGE_LENGTH 100

// Declare variables and structures
HANDLE hSerial = INVALID_HANDLE_VALUE;
DCB dcbSerialParams = {0};
COMMTIMEOUTS timeouts = {0};
DWORD dwBytesWritten = 0;
char dev_name[MAX_PATH] = "";
int dev_number = -1;
int baudrate = 2400;
int scan_max = 30;
int scan_min = 1;
int simulate_keystrokes = 0;
int debug = 1; // print some info by default
int id = -1;

void CloseSerialPort()
{
if (hSerial != INVALID_HANDLE_VALUE)
{
// Close serial port
fprintf(stderr, "\nClosing serial port...");
if (CloseHandle(hSerial) == 0)
fprintf(stderr, "Error\n");
else fprintf(stderr, "OK\n");
}
}

void exit_message(const char* error_message, int error)
{
// Print an error message
fprintf(stderr, error_message);
fprintf(stderr, "\n");

// Exit the program
exit(error);
}

void simulate_keystroke(char c)
{
// This structure will be used to create the keyboard
// input event.
INPUT ip;

// Set up a generic keyboard event.
ip.type = INPUT_KEYBOARD;
ip.ki.wScan = 0; // hardware scan code for key
ip.ki.time = 0;
ip.ki.dwExtraInfo = 0;

// Press the key
// Currently only alphabet lettes, spaces, commas and full stops.
if (c >= 0x61 && c <0x7A>= 0x30 && c <0x39>= 0x41 && c <= 0x5A) ip.ki.wVk = c;
else if (c == ' ') ip.ki.wVk = VK_SPACE;
else if (c == ',') ip.ki.wVk = VK_OEM_COMMA;
else if (c == '.') ip.ki.wVk = VK_OEM_PERIOD;
else if (c == '\b') ip.ki.wVk = VK_BACK;
else if (c == '\t') ip.ki.wVk = VK_TAB;
else if (c == '\n') ip.ki.wVk = VK_RETURN;
else return;

ip.ki.dwFlags = 0; // 0 for key press
SendInput(1, &ip, sizeof(INPUT));

// Release the key
ip.ki.dwFlags = KEYEVENTF_KEYUP; // KEYEVENTF_KEYUP for key release
SendInput(1, &ip, sizeof(INPUT));
}

int main(int argc, char *argv[])
{
// Parse command line arguments. Available options:
//
// /devnum DEVICE_NUMBER
// /baudrate BITS_PER_SECOND
// /id ROBOT_ID_NUMBER
// /keystrokes
// /debug
// /quiet
//
int n = 1;
while (n <argc>= argc) exit_message("Error: no device number specified", 1);

// Set device number to specified value
dev_number = atoi(argv[n]);
}
else if (strcmp(argv[n], "/baudrate") == 0)
{
if (++n >= argc) exit_message("Error: no baudrate value specified", 1);

// Set baudrate to specified value
baudrate = atoi(argv[n]);
}
else if (strcmp(argv[n], "/id") == 0)
{
if (++n >= argc) exit_message("Error: no id number specified", 1);

// Set id to specified value
id = atoi(argv[n]);
}
else if (strcmp(argv[n], "/keystrokes") == 0)
{
simulate_keystrokes = 1;
}
else if (strcmp(argv[n], "/debug") == 0)
{
debug = 2;
}
else if (strcmp(argv[n], "/quiet") == 0)
{
debug = 0;
}
else
{
// Unknown command line argument
if (debug) fprintf(stderr, "Unrecognised option: %s\n", argv[n]);
}

n++; // Increment command line argument counter
}

// Welcome message
if (debug)
{
fprintf(stderr, "\nComPrinter.exe - written by Ted Burke\n");
fprintf(stderr, "https://batchloaf.wordpress.com\n");
fprintf(stderr, "This version: 3-5-2012\n\n");
}

// Debug messages
if (debug > 1) fprintf(stderr, "dev_number = %d\n", dev_number);
if (debug > 1) fprintf(stderr, "baudrate = %d\n\n", baudrate);

// Register function to close serial port at exit time
atexit(CloseSerialPort);

if (dev_number != -1)
{
// Limit scan range to specified COM port number
scan_max = dev_number;
scan_min = dev_number;
}

// Scan for an available COM port in _descending_ order
for (n = scan_max ; n >= scan_min ; --n)
{
// Try next device
sprintf(dev_name, "\\\\.\\COM%d", n);
if (debug > 1) fprintf(stderr, "Trying %s...", dev_name);
hSerial = CreateFile(dev_name, GENERIC_READ|GENERIC_WRITE, 0, 0,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if (hSerial!=INVALID_HANDLE_VALUE)
{
if (debug > 1) fprintf(stderr, "OK\n");
dev_number = n;
break; // stop scanning COM ports
}
else if (debug > 1) fprintf(stderr, "FAILED\n");
}

// Check in case no serial port could be opened
if (hSerial==INVALID_HANDLE_VALUE)
exit_message("Error: could not open serial port", 1);

// If we get this far, a serial port was successfully opened
if (debug) fprintf(stderr, "Opening COM%d at %d baud\n\n", dev_number, baudrate);

// Set device parameters:
// baudrate (default 2400), 1 start bit, 1 stop bit, no parity
dcbSerialParams.DCBlength = sizeof(dcbSerialParams);
if (GetCommState(hSerial, &dcbSerialParams) == 0)
exit_message("Error getting device state", 1);
dcbSerialParams.BaudRate = baudrate;
dcbSerialParams.ByteSize = 8;
dcbSerialParams.StopBits = ONESTOPBIT;
dcbSerialParams.Parity = NOPARITY;
if(SetCommState(hSerial, &dcbSerialParams) == 0)
exit_message("Error setting device parameters", 1);

// Set COM port timeout settings
timeouts.ReadIntervalTimeout = 50;
timeouts.ReadTotalTimeoutConstant = 50;
timeouts.ReadTotalTimeoutMultiplier = 10;
timeouts.WriteTotalTimeoutConstant = 50;
timeouts.WriteTotalTimeoutMultiplier = 10;
if(SetCommTimeouts(hSerial, &timeouts) == 0)
exit_message("Error setting timeouts", 1);

// Read text and print to console (and maybe simulate keystrokes)
int state = 1;
//int i;
char c;
char message_buffer[MESSAGE_LENGTH];
DWORD bytes_read;

// Depending on whether a robot id has been specified, either
// print all incoming characters to the console or filter by
// the specified id number
if (id == -1)
{
// No robot id specified - print everything to console
while(1)
{
ReadFile(hSerial, &c, 1, &bytes_read, NULL);
if (bytes_read == 1)
{
printf("%c", c);
if (simulate_keystrokes == 1) simulate_keystroke(c);
}
}
}
else
{
// A robot id was specified - use a state machine to parse
// incoming text and display only messages in the correct
// format matching the specified id number
while(1)
{
// Read next character
ReadFile(hSerial, &c, 1, &bytes_read, NULL);
if (bytes_read != 1) continue;

if (state == 1)
{
// State 1: Waiting for '<character>= '0' && c <9>') strncat(message_buffer, &c, 1);
else if (c == '>') state = 4;
if (strlen(message_buffer) >= MESSAGE_LENGTH-1) state = 4;
}
else if (state == 4)
{
// State 4: Display complete message
fprintf(stdout, "%s\n", message_buffer);
state = 1;
}
else state = 1;
}
}

// We should never get to this point because when the user
// presses Ctrl-C, the atexit function will be called instead.
return 0;
}

Back to top
View user's profile Send private message
jeffcoll
Junior 2
Junior 2
jeffcoll

Joined: 16 Dec 2012
Posts: 21

PostPosted: 25/10/2016 22:54    Post subject: Reply with quote

usually if your CPU is in run and after x time just stop trying,
and also can not connect to the CPU, you will have to replace the power card as this is a known problem that Hitachi Series,
the power module allows a 5 volt anymore,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> PLC Tutorials All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro