Sign in to follow this  
Followers 0
mkmkmk

getting the value read from the encoder

8 posts in this topic

hi, I could not read this program, so I could not interpret it. Is there anyone who can help me please?

111111111111111.PNG

Share this post


Link to post
Share on other sites

According to Mr. Google:

Rung (0) is a High Speed Counter - https://www.cdluk.com/wp-content/uploads/2019/04/FX5-High-Speed-Counter-Function-HIOEN-in-FX5U-WITH-RESET.pdf

Rung (7) is an OUT Instruction - Page 30 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

Rung (14) is a DMOV Instruction -Page 144 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

Rung (35) contains DMUL {floating point multiplication) - Page 153 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

Rung (35) also contains DDIV (Floating Point Division} - Page 154 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

It wouldn't hurt to read these manuals and then posting your PLC Type and something more about the application, re-ask what you don't understand.

2 people like this

Share this post


Link to post
Share on other sites
45 minutes ago, BobLfoot said:

Bay Google'a göre:

Rung (0), Yüksek Hızlı bir Sayaçtır -  https://www.cdluk.com/wp-content/uploads/2019/04/FX5-High-Speed-Counter-Function-HIOEN-in-FX5U-WITH-RESET. pdf

Basamak (7) bir ÇIKIŞ Talimatıdır - http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf Sayfa 30 

Basamak (14) bir DMOV Talimatıdır - http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf adresindeki Sayfa 144 

Basamak (35) DMUL {kayan nokta çarpımı) içerir - Sayfa 153 /  http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

Basamak (35) ayrıca DDIV (Kayan Nokta Bölümü} - Sayfa 154 /  http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf içerir

Bu kılavuzları okuyup daha sonra PLC Tipinizi ve uygulamayla ilgili başka bir şey yazmaktan zarar gelmez, anlamadığınızı tekrar sorun.

Firstly, thank you for your reply. I don't understand the program so can you help me? I'm confused.

Edited by mkmkmk

Share this post


Link to post
Share on other sites

Please understand I am not a Mitsubishi Expert, but my read of the program is as follows:

Rung (0) is a high speed counter counting pulses from Tag SM402.

Rung (7) is a never ending self resetting counter establishing a pulse interval.

Rung (14) moves data between SD4530 and D1000 every time T30 times out and resets.

Rung (23) does a specialized move of data based on the value of D1000 and the state of K5.

Rung (35) then performs math Multiply and divide on each isntance of Tag SM400.

That's a very basic understanding of what's going on.  A mitsi guru might give you more detail, but so would reading the manuals for yourself.

2 people like this

Share this post


Link to post
Share on other sites
1 hour ago, BobLfoot said:

Please understand I am not a Mitsubishi Expert, but my read of the program is as follows:

Rung (0) is a high speed counter counting pulses from Tag SM402.

Rung (7) is a never ending self resetting counter establishing a pulse interval.

Rung (14) moves data between SD4530 and D1000 every time T30 times out and resets.

Rung (23) does a specialized move of data based on the value of D1000 and the state of K5.

Rung (35) then performs math Multiply and divide on each isntance of Tag SM400.

That's a very basic understanding of what's going on.  A mitsi guru might give you more detail, but so would reading the manuals for yourself.

4 hours ago, BobLfoot said:

According to Mr. Google:

Rung (0) is a High Speed Counter - https://www.cdluk.com/wp-content/uploads/2019/04/FX5-High-Speed-Counter-Function-HIOEN-in-FX5U-WITH-RESET.pdf

Rung (7) is an OUT Instruction - Page 30 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

Rung (14) is a DMOV Instruction -Page 144 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

Rung (35) contains DMUL {floating point multiplication) - Page 153 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

Rung (35) also contains DDIV (Floating Point Division} - Page 154 of http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d48301/jy992d48301j.pdf

It wouldn't hurt to read these manuals and then posting your PLC Type and something more about the application, re-ask what you don't understand.


 

your answer was helpful enough. thank you so much. have a nice day :)

Share this post


Link to post
Share on other sites

at least post PLC model when asking for help. this would help identify correct instruction set and documentation.

SM402 is one of system flags (first scan, always on, always off etc.). 

second rung creates an oscillator (OUT is normally used for controlling bits, but in this case parameter is a timer number 30). so timer keeps resetting itself. interval is set by K1 but the actual preset value depends on timer and PLC. so check manuals for your PLC to determine of this one is also 100ms timer or something else.

K1 indicates integer 1 in decimal format. (K129 is 129)

H1 would be the same but in hexadecimal format (H3A is 0x3A or 58)

rest should be obvious

Share this post


Link to post
Share on other sites
5 hours ago, panic mode said:

at least post PLC model when asking for help. this would help identify correct instruction set and documentation.

SM402 is on of system flags (first scan, always on, always off etc.). 

second rung creates an oscillator (OUT is normally used for controlling bits, but in this case parameter is a timer number 30). so timer keeps resetting itself. interval is set by K1 but the actual preset value depends on timer and PLC. so check manuals for your PLC to determine of this one is also 100ms timer or something else.

K1 indicates integer 1 in decimal format. (K129 is 129)

H1 would be the same but in hexadecimal format (H3A is 0x3A or 58)

rest should be obvious

thanks panic nice to know an old dog can read new stuff halfway decently

Share this post


Link to post
Share on other sites

yup dangerous (more and more) till the end.... :-D

 

still no clue about the exact CPU version.

in general instructions like:

MOV, MUL, DIV etc are 16-bit (integer)

DMOV, DMUL, DDIV etc are 32-bit (integer)

EMUL, EDIV etc are 32-bit (REAL)

but....

that is just "in general"....

as the manual states on some CPUs DDIV could be real (see attachments).

also the system flags  may be SM4xx but on some CPUs they are M8xxx.

this clearly demonstrates that finding and reading correct manual is a necessary.

 

Mitsubishi.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0