Previous: DOWNLOAD MODBUS RTU FILE…..

LADDER MODIFICATION

Please open your downloaded *.cxp file . It will be shown like this:

Fig.41 Open the downloaded file.

Delete the 3 lines of the program. We only use port 1 of SCU41 only.

Fig.42 After deletion the no-use section

EDIT PLC SESUAI PLC ANDA

Edit the PLC type with yours. In this lesson we are using a PLC with the number CJ2M CPU12.

Please start it by hovering the mouse over PLC1 ( CJ2M ) Offline > Right click > Change >

Change the default with your PLC type

Change the Device type and CPU number and end by clicking OK. In this article we change the PLC to CJ2M CPU12.

Fig.43 Set the CPU type of the OMRON’s PLC

When the CX programmer asks “The program and the PLC settings need to be converter……” ,then continue by clicking YES.

There is a 0 error and 32 warning in the bottom window, leave it alone.

Next is do it online with PLC. Send the contents of this program to the PLC by starting from the PLC Menu> Operating Mode> Program or using the mouse to the icon with the PLC symbol.

When the CX programmer asks “Make sure that aren’t any….” then continue with YES.

Note: PLC will Turn Off and doesn’t work.

NOTE: DO NOT CHANGE TO PROGRAM MODE IF THE PLC IS WORKING TO CONTROL SOMETHING. THE MACHINE OR SYSTEM MUST BE READY OR OFF.

SETTING SCU41 MODULE

We have to set the SCU module and register it into the ladder.

You can start by hovering the mouse over the IO Table and Unit Setup icon.

Open it with a double click.

Register the unit number address of your SCU into the ladder program.

Fig.44 Registering the SCU Module

Register your module via Select Unit> Communication Adapter> CJ1W-SCU41( Serial Communication Unit )> OK.

Next is Set the Unit number to 15> OK.

NOTE: Make sure your SCU is set to “F” in your module.

Next step is we are set the communication from this SCU and we send it into the module.

Fig.45 Setting SCU

TASK TRANSFER

Do the task transfer after we are register the SCU module program to your PLC.

Start by hovering the mouse over the program workspace.

Select PORT1 which is currently in STOP position > Click > Select Partial transfer > Task Transfer to PLC.

Fig.46 Partial Transfer to SCU Module

TRANSFER SETTING INTO THE PLC

After created the ladder, then it is time to enter the contents of this ladder into the PLC memory.

Do the transfer program by starting on PLC> Transfer> To PLC or do as the example image below.

Fig.47 Transfer all item to PLC

Fill in all the fields in the Download option field by clicking Transfer All and ending with OK.

SHOWING THE MODBUS VALUE TO THE LADDER

After transferring the program, we have to make sure that the program that we have sent is running by looking at PORT 1 ( 10 ) Running.

REGISTERING MODBUS ADDRESS

The next we will registering the Read Modbus address for the controller which we will retrieve the data.

In this article we are retrieving read data from the address of the temperature controller made by AUTONICS which is known as TM4.

For TM4 module, there are various parameters that can be read by a computer using an application based on MODBUS RTU.

In this case, the common addresses we usually read on TM4 are input temperature 1 , input temperature 2, input temperature 3 and input temperature 4.

The addresses are 1000, 1006, 1012 and 1012, respectively.

Next we have to pay attention to the address of the TM4 module.

In this article, we are placing the modules at addresses 1 and 2.

Fig 48. Set the address of the module by turning the switch with yellow square

Your mouse to MEMORY> Double click> Choose D memory> Fill the cell of D5000> ENTER.
Next is your mouse to address 5000> Double Click> Online> Monitor

Monitoring the Memory of the PLC

Fill the number at these address:
Use Decimal number to fill the memory. The number inside ( ) meaning Hexadecimal number.

D5000: 1 ( 1 )
D5001: 4 ( 4 )
D5002: 1000 ( 3E8 )
D5003: 1 ( 1 )
D5009: 61440 ( F000 )

Note: By the default state, When the program is successfully, a number will appear at the address D5004.

If the incoming signal is up to 31000 then this indicates that the signal to the TM4 input is too large.

The signal from input are too bigger

When there is a data request from the PLC, the SCU module will flash a sign that there is a SEND and RECEIVE signal.

SIGNAL TEST

Next, try to apply a 4 -20mA signal into the input of the unit 1 module which has simple converter circuit.

Firstly please apply 20mA .

Pay attention to the numbers on the address D5004.

Turn the trimpot until the address D5004 displays the number 1250.

After you adjust the number, now try to decrease the current to 4mA.

Notice the moving numbers at address D5004. In this lesson the address show the number is 288.

TO BE CONTINUED……..

Kiriman serupa

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *