GregaG

MrPLC Member
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About GregaG

  • Rank
    Newbie
  • Birthday 10/17/87

Contact Methods

  • Website URL http://

Profile Information

  • Country Slovenia

Recent Profile Visitors

1646 profile views
  1. CJ1M and PMCR command

    I would like to apologise for posting in such an old topic. Its been more then 1 year and i have successfully graduated. Its yet not known if ill be working with PLCs, athleast i dont see a job opening in industrial automatisation anytime soon. I want to especially thank to BobB and PMCR, for helping me out in this topic and also thanks to community of this forum for examples and documentation. Best regards GregaG
  2. SCL3 problem

    fixed
  3. SCL3 problem

    i uploaded an example of code now i cant make it to scale bcd code to hex now ull notice in code i have 2 scl3 cases, thats because i scale it for CX-Supervisor i have tempareture range from -50ºC to 150ºC and the tempareture regulator writes the tempareture in following format -50ºC......FE0C -0.1ºC.....FFFF 0ºC........0000 150ºC.......05DC thats why i scale the negative value and positive value diffrently, actually i scale negative value from 0-499 and positive including 0ºC from 500-2000 now i just have to make it work the opposite way some how it manages to get #08CA as result when i have #750 at D500, when the max result i should have is #05DC, and i do get #05DC when the value of D500 is #500 any ideas? Edit: ok from what i can see from instructions i have to specify 5 parameters first is offset, second range of BCD area or ΔX, third is ΔY orrange of hex area, fourth is maximum conversion and fifth is minimum conversion so for only scaling positive range of tempareture i would have to set, athleast thats how i understand D330 #0000 D331 #1500 D332 #05DC D333 #05DC D334 #0000 but still doesnt works :( scale.zip
  4. CJ1M and PMCR command

    ty both of u for helping @BobB I did encounter such thing already, where user parameter are shifted by 1 instead of beggining at adress 768, they start with 769 @PMCR i am aware of trace option, there are 2 mistakes i have found in code the send and recive codes in protocol macro are missplaced at sequence and when writing single register it has to be 4 words otherwise there is an error since ur not reading the data u wanna write if i m not mistaken actually i have 3 things i wanna ask if it is possible to explain 1.)ill just paste from excell FUN06 Single Register Write Send +0 Number of words in table (always 4) +1 Modbus Node Number +2 First Modbus Register to write (In HEX) +3 Data to write i am interested in "Number of words in table (always 4)" what exactly do i specify? at what i imagine now u specify the number of DMs u are using including the DM where u have the number of words writen 2.) the logical port in PCMR command atm i have it set 0110, which means logical port is 0, is it important for anything else except of using it for flag (example for logical port 0, we have A202.0, which tells us when we can transmit and recive) could it be that if i used rs485 and rs 232 at same time i would have to have 2 diffrent logical ports or can u still use same logical ports? and also if i would use 2 scu41-V1 moduls can u use same logical ports for both cards at same time and if so does every modul by that i mean scu 41 has its own logical ports(if i use logical port for first scu 41 and logical port 0 for second scu 41, they arent actually same ports ?) 3.) where can i find annotations, i mean how the hell u insert them ?
  5. CJ1M and PMCR command

    first a little warning i am still a student, doing now practical schooling, so i am unexperienced, so pls take that in consideration i am using CJ1M with SCU 41-V1, communicating with dixell xr 110c throught protocol macro now i have already made the basic communication working as it should, having only have to setup the control words in PMCR while leaving First send word #0 and First recive word #0 how ever the problems start when the company wants me so they can specify slave number and register in program and also storing the the reply in a register they want, by setuping it in CX-Programmer or eighter throught scada or touch panel, basicly setuping it in program and not by writing macro in Cx-Protocol i have been looking at ModbusPM Operation Manual from this forum, and i managed to make the First send word to work, i mean the Request from omron to dixell is working fine and also dixell Response looks fine judging from trace, how ever i cant make it to store the response data in register specified in First recived word in my case W10 or D800 i tried instead of ~(R(1),1) at slave numer with fixed 01 didnt hlp i then tried athleast to make it so i can specify the slave number and register number and number of registers i want and leaving recived macro to store it to D10 now the interesting thing is when i have first recived word as #0 it doesnt stores to D10, while if i have First recived word W10 it stores to D10 i am sorry for any gramar mistakes, since english isnt my primary language and i hope i wrote it enought understandable i attached the XR110C documentation, actually the way it communicates is on site 1, since at the moment i only need to read a register i also attached the basic communication program and protocol as well as when i specified everything in PMCR(program and protocol) modbuss.rar