What command need be execute with encoder

hi, all:

I have already control the motor speed with HALL sensor, then remove the HALL sensor, I conncet OMRON’s encoder, but I don’t control the motor’s speed, what command be miss ?
please list the all config, thanks!