![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498180.webp)
4 Using Protocol Macros
4-44
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
In the following example, sequence number 610 (Variable Area Read) of a CompoWay/F Master (Vari-
able Area Read) is executed by the ExecPMCR instruction and the present value that was read upon
successful completion of the sequence is transferred to another user-defined variable (defined as Tmp-
Data here).
z
Unit Settings
* Make sure the settings match the corresponding settings at the destination.
The default settings are Baud Rate: 9,600 bps, Start Bits: 1 bit, Data Length: 7 bits, Parity: Even parity
and Stop Bits: 2 bits.
Example of User Program Creation
Name
Setting target
Setting
Unit Configuration
CPU/Expansion Racks in
Configuration and Setup
of Sysmac Studio
Mount CJ1W-SCU42 in slot 0 of the CPU Rack.
Device name of this unit
SCU
Unit number
Unit number switch and
Unit Configuration
(CPU/Expansion Racks in
Configuration and Setup
of Sysmac Studio)
Unit number 2
Serial Communications
Mode
System Settings data
Protocol Macro Mode
Port setting
Default (*)