-
Content count
1801 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Calendar
Everything posted by Michael Walsh
-
SYSMAC Studio Project Type
Michael Walsh replied to mr_electrician's topic in NJ Series / Sysmac Studio
Library project is for building Libraries. A library is a file that contains custom data types, functions, function blocks, etc. that you would want to use in other programs. When you include a library in your project, the functions and function blocks will show up in the toolbox for you to use. IAG project is for creating custom objects that can be used on HMI screens. Similar concept to a library but for the NA screen. -
Hex #4002 - each digit is 4 bits. So, Hex 4002 means 0100 0000 0000 0010 (which would be bit 2 and 14 on).
-
Both of the above issues are big issues. By having the real number in the input field, the PID instruction was looking at nonsensical data as it was looking for an integer. Also, by Having D350 rather than D200 as the second entry, the instruction was not even looking at any of the parameters that you had set up in the D200 range. It was looking in the D350 - D388 range (which was likely all zeros, except for your setpoint). Lastly, it is recommended that you zero out the "scratch pad" area that the PID function uses for its calculation.
-
@SillyBoy You need to add every node on your network to the IP Address table of each PLC and of the touch screen (note that the Conversion method needs to be combined (or IP Address Table) to enable entry into the IP Address table): PLC A (I am going to assume the 22 that you mention is the dials on the front of the unit. That is a hex number. Hex 22 = decimal 34, so I used 34 as the node number): PLC B (I am going to assume the 23 that you mention is the dials on the front of the unit. That is a hex number. Hex 23 = decimal 35, so I used 35 as the node number): NS5 (I am going to assume it is FINS node 44 to match the last octet, I would recommend that for the PLCs also, but did not change that above):
-
@Deng You only need to use SEND or RECV to make data go from one PLC to another. Think of SEND as if it were a "WRITE to other PLC" command and RECV as if it were "READ from other PLC command".
-
First of all, don't scale the feedback to BCD. Scale it to an unsigned integer. I assume 0-100 is a reference to percent. With this setup, C+6 would be: #0010 Bits 8-11 are the input range. Since 100 is in the 8 bit range, a value of 0 is what you use. Bits 4-7 is for the integral and derivative unit. I chose a multiple of the sampling period. This determines the multiplier of C+2 and C+3. Bits 0-3 are the output range. This has to be the same as bits 8-11. So I set this to 0. So, your input is a 0-100 % value as scaled from the analog input. The output of the function will then be a 0-100% command to the analog output. C+7 would then be 0 - the lower limit for the output. C+8 would then be 100 - the upper limit for the output. You would then take the output value and scale it to the analog output range using the function block that I referred to earlier. If the range was 0-3999 for instance, you would use the FB to scale 0-100 to 0-3999. Hopefully this helps.
-
I would suggest that you use this scaling Function block: https://forums.mrplc.com/index.php?/files/file/996-analog-scaling-function-block/
-
Read this thread: https://forums.mrplc.com/index.php?/topic/25148-cj2m-ethernet-ip-error-f3/#comment-121115 It explains why you are having issues. You will have to add every node that you wish to communicate to the IP Address table as FET_Destroyer mentions.
-
You either set an end code in the setup of the port, or you specify a number of bytes received. If the end code is received or the number of bytes set is received, then this bit turns on.
-
You can contact Omron.
-
Equivalent to the "SET OUT RESET" instruction in the CX-Programmer
Michael Walsh replied to Wojtiqs's topic in CX-Programmer
You can certainly use a CJ1 for testing and it would likely cover everything you need. The CJ2 is the current family though. -
From @Janaka Angampitiya: Hello, I have Three CP1H PLC with Cj1w scu31-v1. I need to send a Modbus command SCU unit through Modbus RTU compatible power meter. I use instruction TXDU and CMND but it's not working. My PLC Arrangement CP1H PLC - CP1H-X40DT1-D ver. 1.3 Option Board 1 mounted Cp1w-CI41 to NB HMI its work Option Board 2 Mounted CP1W-CIF12-V1 to PLC 1, PLC 2 and PLC 3 between communication Serial gateway mode it is work. CJ1W SCU31-V1 (ver.1.3) and Modbus compatible Power meter it's not working. Please help to how to connected and what is the use of instructions for this case.
-
@LD_M: I think that I got all the links repaired. Let me know if I missed something.
-
Structured text operator not supported by DWORD data type
Michael Walsh replied to MartyB's topic in CX-Programmer
DWORD is a hex format, generic for a double channel. I assume these are integers, so you would want the data types to be DINTs (signed) or UDINTs (Unsigned). I would recommend that you make them DINTs or UDINTs from the get go though (Therefore no conversion instructions). Unless there is a specific reason they need to be DWORDs.... -
Capture snapshot of I/O data for simulation
Michael Walsh replied to Musicman44's topic in CX-Programmer
You need to do what Bits N Bytes suggested. Store the values that you want to write in DM words that you are not using in your code. Then on the first scan, use the XFER function. So, lets say you want to set up the CIO channels 0-3. Lets say you are not using D500 - D503. Load up D500 - D503 using the memory tool. They will not reset to 0 when you go from program to monitor. Or, you could set your code up to load up D500 - D503 on the first scan of the program. When you are simulating and you want to change the I/O to the test values, just turn on the TransferNow bit (manually or with some part of your code) in the image below: -
Attached below is a simple print out of the program: mr PLC program.pdf
-
Equivalent to the "SET OUT RESET" instruction in the CX-Programmer
Michael Walsh replied to Wojtiqs's topic in CX-Programmer
CJ2 and CS1 are not going anywhere. Not being phased out. No worries. -
Capture snapshot of I/O data for simulation
Michael Walsh replied to Musicman44's topic in CX-Programmer
Yes, that would work, but the conditions would not change as he I believe he is asking. This would only create a static configuration of the IO. Personally, I would just turn them on manually as I need them. I don't know how to create the file for the playback mode. -
Humming Noise in Motor
Michael Walsh replied to yadav.parbhakar@gmail.com's topic in NJ Series / Sysmac Studio
The motor needs to be tuned. There are parameters in the drive that need to be modified according the the load, inertia and movement requirements of the system. Often, a simple auto tune process is enough to make the motor perform well and not vibrate or hum. Please investigate auto tune in the manuals. -
Capture snapshot of I/O data for simulation
Michael Walsh replied to Musicman44's topic in CX-Programmer
If you are in the CIO area, it is not retentive, so when you go into run / monitor, it is all reset to zeros. The memory tool will not do what you want. I/O Conditions and replay is the only possibility. -
What I told you shows used and available. If you need percentage, do the math.
-
Change the function block. Add a second boolean input that is called Invert. If it is true, it inverts the input if not, it does not. Or if it always needs to be inverted, just change the FB to invert it all the time.
-
Cam Parameter in NX 1P2 Controller
Michael Walsh replied to yadav.parbhakar@gmail.com's topic in NJ Series / Sysmac Studio
Use the MC_GearIn function block. -
With respect to program capacity, View pulldown menu, then Memory View