Return to Website

Lighthouse PLCs, Inc. : Automation Forum

THE PURPOSE OF THIS FORUM IS: AUTOMATION SOLUTIONS.  IF YOU ARE A PERSON INVOLVED IN SOME ASPECT OF AUTOMATION, HAVE AN APPLICATION YOU JUST CAN'T QUITE GET A HANDLE ON  - HAVE A PRODUCT QUESTION - OR MAYBE HAVE AN ISSUE WITH SOMETHING (EVEN IF IT IS WITH US    ), IT IS POSSIBLE YOU WILL FIND THE ANSWER HERE!!  

 OR,  IF YOU  ABSOLUTELY KNOW  THE ANSWER, OR EVEN THINK  YOU KNOW THE ANSWER, THEN JUST POST IT! MAKE THAT REPLY!
YOU ARE PROBABLY RIGHT ON THE MARK, AND MIGHT BE ABLE TO HELP SOMEBODY OUT!!    

AND, IT COULD BE YOU THAT NEEDS HELP NEXT TIME. AFTER ALL...(REALLY?).. ARE WE NOT ALL "CHILDREN" - AT VARIOUS POINTS ON THE LEARNING CURVE OF TECHNOLOGY" ???  (I know I've still got a lot to learn and I've been at it for... well since 1970!)

Hopefully the information presented here will help provide solutions to some of today's automation challenges. Some issues are probably old, some are probably new. Many are products of the economy, the resultant reduction in manpower, exacerbated by aging equipment crippled by decreases in maintenance budgets.  The ULTIMATE goal here is that we all become more successful in our careers and chosen professions.

      MAYBE THIS FORUM CAN HELP!!! 

You know the rules - ADVERTISING IS NOT ALLOWED  ! 

This area is for we, :

No Offense Intended...the Fraternal Order of Propeller-Heads No Offense Intended

 You know the rest - no flaming ,  profanity, blatant advertising,  etc., etc., blah, blah, blah.  If you are 5 years old, or feel like acting 5 years old, you really need to go outside and ride your bike - OH, and seek some professional therapy.  Yea, that would be good, too!

OH!  BTW, if you don't feel like providing your name/company, just put "Anonymous" / "Withheld"/ "Not On File" or Anything!  I promise we won't tell !

Note:  For best viewing..
We suggest switching to "Board Style" (below) rather than "Threaded Style" !
Your choice!  

 

PLC and Inverter Forum
Start a New Topic 
Author
Comment
Re: Re: Re: Re: H-protocol (Taskcode Communication)


Dear Satoshi,





I am glad to tell you that my host PC can talk with EH-150 through the driver I wrote. (EH-ETH ethernet protocol) Thanks a lot!





I will add new features to the driver so that host PC can communicate with EH-150 through serial port.





I have these questions as following.


What is the difference between dedicated port and general-purpose port?


If I want to monitor the data of the PLC with standard H-protocol, I should use dedicated port, right?


According to the manual, except STX and CR, the other part of the frame should be ASCII, including the timeout, LUMP address and task code.


Which one of the following is right?


[02] 0 FF FF 00 00 A0 0C 000020 10 [0D]


hex code


[02] 0 46 46 46 46 30 30 30 30 41 30 30 43 ..... [0D]


ASCII code








Regards,


Jucao



--- --- --- --- --- --- --- --- ---

Replying to:


Dear Mr.Jucao,





Sorry for unclear information.





Let me reconfirm of each meaning.





ASCII : ASCII code (0==30, A==41, F==46, STX==02 etc.)


Binary : Hexadecimal code 0 to F





In Ethernet protocol, all message should be written in hexadecimal.


Decimal code is never used.





As you may know, Hitachi addressing is a little special. Only bit X,Y,timer,counter,CL,TC,DIF and DFN is expressed in decimal like this.





Timer TD255 = TDFF


WX0 = X0-X15 (not X0-XF).





The others are in hexadecimal. (R,WR,M,WM,WX,WY...)


WR1AF, R1B, WM1FF...





But from view point of task code, you don't have to consider this decimal part. If you read out X15, please address XF instead of X15.


(X0-95 = X0-5F)





* Note : If PLC receives a reading/writing command for one bit, PLC is working WORD unit. (only a bit cannot be handled. Internally CPU is reading one word and copying one bit or something complicated work like this.)





<< Example


16 words (h10 words) reading from WM20


FFFF0000 A00C 000020 10


A0 = To read


0C = WM


000020 = address WM20


10 = 16 words = h10 words





If you have any question, please contact me.





Best regards





Satoshi Sakai


Hitachi Europe GmbH

--- --- --- --- --- --- --- --- ---

Replying to:


As an engineer of National Instruments, I am now writing a driver for Hitachi EH150 to communicate with host PC.


The driver will support both serial communication and ethernet.





I have known the request and response frame through Ethernet, that


is,





00 XX FF FF 00 00 task code request ---------- request


frame


00 XX FF FF 00 00 task code response ---------- response


frame





Here FF FF 00 00 is LUMP address.





My questions include -


1. What does XX stand for in the ethernet frame?


2. What are the request and response frames of serial communication (RS 232, 485 etc)?





Waiting for your reply. It will be nice if you can let me know where I can download an instruction manual about it.





Thanks,


Jucao

--- --- --- --- --- --- --- --- ---

Replying to:


Basically, information of standard task code (RS-232/485) is described in COMM-2H manual, and Ethernet version is in LAN-ETH manual. If you do not have these, you will need to get these sooner or later.


These *should* answer your questions. If not - give us another shot!


TImothy Davis :-H

--- --- --- --- --- --- --- --- ---

Replying to:

Dear Ms/Sir,




I am trying to build a communication driver for EH-150. I am wondering if I can get the detail specification of H-protocol (Taskcode communication), such as the frame format of request and response. I am very confusing by the documents I have right now.




Thanks,


Jucao