Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading other than memory area D #5

Closed
danibjor opened this issue Nov 7, 2016 · 7 comments
Closed

Reading other than memory area D #5

danibjor opened this issue Nov 7, 2016 · 7 comments

Comments

@danibjor
Copy link
Contributor

danibjor commented Nov 7, 2016

I tried to read data from memory area HR.

Googled around a bit and found HR to be 0x80.
I've updated the constants.js file to include HR area like this:

module.exports.MemoryAreas = {
    'H' : 0x80,
    'D' : 0x82
};

I've added a console.log(temp) to fins_client.js' _translateMemoryAddress function just to verify that MemoryArea is in fact set to 0x80.

I do a simple .read('H00300', 24) and do a console.log(msg) in the 'reply' event method:

{
  remotehost: '10.0.0.233',
  sid: 9,
  command: '0101',
  response: '0000',
  values: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] 
}

In Omron Sysmac Studio, we inspect the H3xx memory area and it dones not look like this. Values should be like [big integer, 0, 2, ...]

Any ideas?

@danibjor
Copy link
Contributor Author

danibjor commented Nov 7, 2016

I could add that reading from D works fine - so the question really is if the headers or something else should change when reading from DM to HR (other than memoryArea byte)

@danibjor
Copy link
Contributor Author

danibjor commented Nov 7, 2016

Fixed it - HR register is 0xB2, not 0x80

@danibjor danibjor closed this as completed Nov 7, 2016
@ptrks
Copy link
Owner

ptrks commented Nov 7, 2016

Hi Danibjor,

Sorry for the late response. If you have any other problems let me know.
If you haven't seen this already, this manual will have memory codes and other helpful information:
http://omron.com.ru/dynamic/managers/manage_8/files/w342e1-3.pdf

@danibjor
Copy link
Contributor Author

danibjor commented Nov 7, 2016

Added a pull request with update to read HR register.

@arkypita
Copy link

Hi all, does anyone know if it is possible to read EM Area of omron PLC via fins command?
I can't find a reference to what command code should be use.

image

@side105
Copy link

side105 commented Aug 30, 2018

yes, you have to use 0xA0 command. (see complete list below)

        /// <summary>Extended Memories</summary>
        EM = 0xA0,
        /// <summary>CIO</summary>
        CIO = 0xB0,
        /// <summary>Work Area</summary>
        WR = 0xB1,
        /// <summary>Holding Bit</summary>
        HR = 0xB2,
        /// <summary>Auxiliary Bit</summary>
        A = 0xB3,
        /// <summary>Data Memories</summary>
        DM = 0x82

@arkypita
Copy link

Thanks a lot, you save my day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants